Theora Playback Library  1.1.0
Public Member Functions | List of all members
TheoraFileDataSource Class Reference
Inheritance diagram for TheoraFileDataSource:
TheoraDataSource

Public Member Functions

 TheoraFileDataSource (std::string filename)
 
 ~TheoraFileDataSource ()
 
int read (void *output, int nBytes)
 
void seek (uint64_t byte_index)
 position the source pointer to byte_index from the start of the source More...
 
std::string repr ()
 returns a string representation of the DataSource, eg 'File: source.ogg' More...
 
uint64_t size ()
 return the size of the stream in bytes More...
 
uint64_t tell ()
 return the current position of the source pointer More...
 
std::string getFilename ()
 
- Public Member Functions inherited from TheoraDataSource
virtual ~TheoraDataSource ()
 

Detailed Description

provides standard file IO

Constructor & Destructor Documentation

TheoraFileDataSource::TheoraFileDataSource ( std::string  filename)
TheoraFileDataSource::~TheoraFileDataSource ( )

Member Function Documentation

std::string TheoraFileDataSource::getFilename ( )
inline
int TheoraFileDataSource::read ( void *  output,
int  nBytes 
)
virtual

Reads nBytes bytes from data source and returns number of read bytes. if function returns less bytes then nBytes, the system assumes EOF is reached.

Implements TheoraDataSource.

std::string TheoraFileDataSource::repr ( )
inlinevirtual

returns a string representation of the DataSource, eg 'File: source.ogg'

Implements TheoraDataSource.

void TheoraFileDataSource::seek ( uint64_t  byte_index)
virtual

position the source pointer to byte_index from the start of the source

Implements TheoraDataSource.

uint64_t TheoraFileDataSource::size ( )
virtual

return the size of the stream in bytes

Implements TheoraDataSource.

uint64_t TheoraFileDataSource::tell ( )
virtual

return the current position of the source pointer

Implements TheoraDataSource.


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