class NetLogReader

Network Log Reader. More...

Full nameCoral::NetLogReader
Definition#include <netlogreader.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


Detailed Description

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:
nameName of log file.

~NetLogReader ()

Destructor.

inline bool ready ()
[const]

Check, if NetLogReader is ready.

Returns: true, if ready; false, if not.

inline bool eof ()
[const]

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:
reportAddress 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:
reportAddress 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.