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

#include <LocalDataFileSource.h>

Inheritance diagram for BUSBOY::LocalDataFileSource:
BUSBOY::DataFileSource

Public Member Functions

 LocalDataFileSource (const std::string &path)
 
std::string getPath () const
 
char * getFileBytes () const
 NOTE: logical const, implementations may make changes behind the interface to lookup the data. More...
 
size_t getFileSize () const
 NOTE: logical const, implementations may make changes behind the interface to lookup the data. More...
 
size_t read (char *buf, size_t num)
 Read up to the next num bytes into buf, returns the number of bytes read. More...
 
size_t skip (size_t num)
 Skip up to the next num bytes, returns the number of bytes skipped. More...
 
void release ()
 
bool isReleased () const
 
 ~LocalDataFileSource ()
 
- Public Member Functions inherited from BUSBOY::DataFileSource
bool operator!= (const DataFileSource &src) const
 

Constructor & Destructor Documentation

BUSBOY::LocalDataFileSource::LocalDataFileSource ( const std::string &  path)
BUSBOY::LocalDataFileSource::~LocalDataFileSource ( )

Member Function Documentation

char * BUSBOY::LocalDataFileSource::getFileBytes ( ) const
virtual

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

Implements BUSBOY::DataFileSource.

size_t BUSBOY::LocalDataFileSource::getFileSize ( ) const
virtual

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

Implements BUSBOY::DataFileSource.

std::string BUSBOY::LocalDataFileSource::getPath ( ) const
bool BUSBOY::LocalDataFileSource::isReleased ( ) const
virtual
size_t BUSBOY::LocalDataFileSource::read ( char *  buf,
size_t  num 
)
virtual

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

Reimplemented from BUSBOY::DataFileSource.

void BUSBOY::LocalDataFileSource::release ( )
virtual
size_t BUSBOY::LocalDataFileSource::skip ( size_t  num)
virtual

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

Reimplemented from BUSBOY::DataFileSource.


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

Copyright 2014 Google Inc. All rights reserved.