3 #include "util/SensorDataParser.h"
23 void setParser(SensorDataParser::Ptr parser);
43 const std::string &prefix,
44 const std::string &content)
const;
47 std::string m_delimiter;
48 SensorDataParser::Ptr m_parser;
Definition: SensorData.h:20
ChecksumSensorDataParser parses data serialized by the equivalently configured ChecksumSensorDataForm...
Definition: ChecksumSensorDataParser.h:13
SensorData checkAndParse(const std::string &prefix, const std::string &content) const
Check the given checksum and parse the content by the configured parser.
Definition: ChecksumSensorDataParser.cpp:62
Definition: SensorDataParser.h:11
SensorData parse(const std::string &data) const override
Parse the given data string. Expect it to start with a checksum following by the given delimiter...
Definition: ChecksumSensorDataParser.cpp:39
void setDelimiter(const std::string &delimiter)
Set delimiter between the prepended checksum and the actual data part formatted by the wrapped format...
Definition: ChecksumSensorDataParser.cpp:29
SensorData parseNoDelimiter(const std::string &data) const
Parse the input data in case when the preset delimiter is empty.
Definition: ChecksumSensorDataParser.cpp:54