BusBoy  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
BUSBOY::DataFileSource Class Referenceabstract

#include <DataFileSource.h>

Inheritance diagram for BUSBOY::DataFileSource:
BUSBOY::ExternalDataFileSourceImpl BUSBOY::LocalDataFileSource BUSBOY::SimpleDataFileSource

Public Member Functions

virtual char * getFileBytes () const =0
 NOTE: logical const, implementations may make changes behind the interface to lookup the data. More...
 
virtual size_t getFileSize () const =0
 NOTE: logical const, implementations may make changes behind the interface to lookup the data. More...
 
virtual size_t read (char *buf, size_t num)
 Read up to the next num bytes into buf, returns the number of bytes read. More...
 
virtual size_t skip (size_t num)
 Skip up to the next num bytes, returns the number of bytes skipped. More...
 
virtual void release ()=0
 
virtual bool isReleased () const =0
 
bool operator!= (const DataFileSource &src) const
 

Member Function Documentation

virtual char* BUSBOY::DataFileSource::getFileBytes ( ) const
pure virtual

NOTE: logical const, implementations may make changes behind the interface to lookup the data.

Implemented in BUSBOY::LocalDataFileSource, and BUSBOY::SimpleDataFileSource.

virtual size_t BUSBOY::DataFileSource::getFileSize ( ) const
pure virtual

NOTE: logical const, implementations may make changes behind the interface to lookup the data.

Implemented in BUSBOY::LocalDataFileSource, and BUSBOY::SimpleDataFileSource.

virtual bool BUSBOY::DataFileSource::isReleased ( ) const
pure virtual
bool BUSBOY::DataFileSource::operator!= ( const DataFileSource src) const
size_t BUSBOY::DataFileSource::read ( char *  buf,
size_t  num 
)
virtual

Read up to the next num bytes into buf, returns the number of bytes read.

Reimplemented in BUSBOY::LocalDataFileSource, and BUSBOY::SimpleDataFileSource.

virtual void BUSBOY::DataFileSource::release ( )
pure virtual
size_t BUSBOY::DataFileSource::skip ( size_t  num)
virtual

Skip up to the next num bytes, returns the number of bytes skipped.

Reimplemented in BUSBOY::LocalDataFileSource, and BUSBOY::SimpleDataFileSource.


The documentation for this class was generated from the following files:

Copyright 2014 Google Inc. All rights reserved.