Class LogFile

Class Documentation

class LogFile

Public Functions

int size() const

Returns the number of modules in the log file.

bool getNextFeedback(GroupFeedback &feedback)

retrieves the next group feedback from the log file, if any exists

Warning: other data in the provided ‘Feedback’ object is erased!

Parameters:

feedback – On success, the group feedback read from the group are written into this structure.

Returns:

true if feedback was returned, otherwise false on failure

LogFile() = delete
~LogFile()

Public Static Functions

static std::shared_ptr<LogFile> open(std::string file)

Opens an existing log file.

Parameters:

file – The absolute or relative path to an existing log file

Returns:

a shared pointer to the opened file on success, otherwise a null pointer (i.e. invalid log file or nonexistent file)