Fixposition SDK 0.0.0-heads/main-0-g7b59b93
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::fpl::FplFileReader Class Reference

Read log messages from logfile. More...

#include <fpl.hpp>

Public Member Functions

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.
 

Detailed Description

Read log messages from logfile.

Definition at line 209 of file fpl.hpp.

Member Function Documentation

◆ Open()

bool fpsdk::common::fpl::FplFileReader::Open ( const std::string & path)

Open logfile.

Parameters
[in]pathThe logfile
Returns
true on success, false otherwise

◆ Next()

bool fpsdk::common::fpl::FplFileReader::Next ( FplMessage & log_msg)

Get next log message.

Parameters
[out]log_msgThe 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]progressProgress in [%] (approximate with gzipped files)
[out]rateRate 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: