|
|
This class implements a reader for NetworkMonitorReports. The reports will be read from a file written by NetLogWriter.
NetLogReader (const char* name) |
Constructor for a new NetLogReader.
Parameters:
name | Name of log file. |
~NetLogReader () |
Destructor.
inline bool ready () |
Check, if NetLogReader is ready.
Returns: true, if ready; false, if not.
inline bool eof () |
Check, if NetLogReader has reached end of file.
Returns: true, if end of file is reached; false, if not.
inline card64 getTimeStamp () |
Get time stamp of file (seconds since 01-Jan-1970).
Returns: Time stamp.
inline card64 getInterval () |
Get interval of the entries in file.
Returns: Interval in microseconds.
bool readNextReport (NetworkMonitorReport* report) |
Read next report from file.
Parameters:
report | Address of NetworkMonitorReport to store the report. |
Returns: true, if there was a report; false otherwise.
bool readNextStreamReport (StreamReport* report) |
Read next stream report from file.
Parameters:
report | Address of StreamReport to store the report. |
Returns: true, if there was a stream report; false otherwise.
inline void reset () |
Reset report file position to first report.