Read log messages from logfile.
More...
#include <fpl.hpp>
|
bool | Open (const std::string &path) |
| Open logfile.
|
|
bool | Next (FplMessage &log_msg) |
| Get next log message.
|
|
bool | GetProgress (double &progress, double &rate) |
| Get progress report.
|
|
Read log messages from logfile.
Definition at line 209 of file fpl.hpp.
◆ Open()
bool fpsdk::common::fpl::FplFileReader::Open |
( |
const std::string & | path | ) |
|
Open logfile.
- Parameters
-
- Returns
- true on success, false otherwise
◆ Next()
bool fpsdk::common::fpl::FplFileReader::Next |
( |
FplMessage & | log_msg | ) |
|
Get next log message.
- Parameters
-
[out] | log_msg | The log message |
- Returns
- true if a next log message was found, false at end of file (or other problems)
◆ GetProgress()
bool fpsdk::common::fpl::FplFileReader::GetProgress |
( |
double & | progress, |
|
|
double & | rate ) |
Get progress report.
- Parameters
-
[out] | progress | Progress in [%] (approximate with gzipped files) |
[out] | rate | Rate in [MiB/s] |
- Returns
- true if is a good time to print the progress report, false otherwise
The documentation for this class was generated from the following file:
- fpsdk_common/include/fpsdk_common/fpl.hpp