OnixS ICE iMpact Multicast Price Feed Handler C++ library  8.18.0
API documentation
LogReplayInputStream Class Referenceabstract

#include <LogReplayInputStream.h>

Public Member Functions

virtual std::size_t read (char *const data, std::size_t size)=0
 

Protected Member Functions

virtual ~LogReplayInputStream ()
 

Detailed Description

Definition at line 27 of file LogReplayInputStream.h.

Constructor & Destructor Documentation

virtual ~LogReplayInputStream ( )
inlineprotectedvirtual

Deletion is not supposed through interface of this class.

Definition at line 52 of file LogReplayInputStream.h.

Member Function Documentation

virtual std::size_t read ( char *const  data,
std::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.


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