Fixposition SDK 0.0.0-heads/main-0-g7b59b93
Collection of c++ libraries and apps for use with Fixposition products
|
Logfile parser. More...
#include <fpl.hpp>
Public Member Functions | |
bool | Add (const uint8_t *data, const std::size_t size) |
Add data to parser. | |
void | Reset () |
Reset parser. | |
bool | Process (FplMessage &log_msg) |
Process data in parser, return message. | |
bool fpsdk::common::fpl::FplParser::Add | ( | const uint8_t * | data, |
const std::size_t | size ) |
Add data to parser.
[in] | data | Pointer to data, can be NULL, in which case size is ignored |
[in] | size | Size of data, can be <= 0, in which case data is ignored |
The suggested chunk size to add to the parser is FplMessage::MAX_SIZE
void fpsdk::common::fpl::FplParser::Reset | ( | ) |
Reset parser.
Resets the parser state and discards all collected data.
bool fpsdk::common::fpl::FplParser::Process | ( | FplMessage & | log_msg | ) |
Process data in parser, return message.
[out] | log_msg | The detected message |
log_msg
may be modified.