OnixS ICE iMpact Multicast Feed Handler for C++  3.13.0.0
Public Member Functions | Protected Member Functions | List of all members
LogReplayInputStream Class Referenceabstract

Log replay input stream. More...

Public Member Functions

virtual size_t read (char *const data, size_t size)=0
 Called when log player wants to read data from stream. More...
 

Protected Member Functions

virtual ~LogReplayInputStream ()
 Deletion is not supposed through interface of this class.
 

Detailed Description

Log replay input stream.

Member Function Documentation

virtual size_t read ( char *const  data,
size_t  size 
)
pure virtual

Called when log player wants to read data from stream.

Parameters
databuffer to read data into
sizemax size to read
Returns
0 in case of EOF, actually read bytes count otherwise
Note
Implementation is free to throw any exceptions. Player would react differently depending on exception type.

Particularly:

  • std::ios_base::failure – serious problem on getting data means do not try any further reading from stream and terminate playing;

Absolutely all exceptions are reported via error handler. Description string will be available for children of std::exception.