Kyoto Tycoon
|
Reader of update logs. More...
#include <ktulog.h>
Public Member Functions | |
Reader () | |
Default constructor. | |
~Reader () | |
Destructor. | |
bool | open (UpdateLogger *ulog, uint64_t ts=0) |
Open the reader. | |
bool | close () |
Close the reader. | |
char * | read (size_t *sp, uint64_t *tsp) |
Read the next message. |
Reader of update logs.
kyototycoon::UpdateLogger::Reader::Reader | ( | ) | [explicit] |
Default constructor.
Destructor.
bool kyototycoon::UpdateLogger::Reader::open | ( | UpdateLogger * | ulog, |
uint64_t | ts = 0 |
||
) |
Open the reader.
ulog | the update logger. |
ts | the maximum time stamp of already read logs. |
Close the reader.
char* kyototycoon::UpdateLogger::Reader::read | ( | size_t * | sp, |
uint64_t * | tsp | ||
) |
Read the next message.
sp | the pointer to the variable into which the size of the region of the return value is assigned. |
tsp | the pointer to the variable into which the time stamp is assigned. |