1 #ifndef NLOHMANN_PARSERS_H 2 #define NLOHMANN_PARSERS_H 17 _use_message_stamp(use_msg_stamp) {}
76 qDebug() <<
"Destroying QCheckBoxClose";
85 _checkbox_use_timestamp =
new QCheckBoxClose(
"use field [timestamp] if available");
90 return _checkbox_use_timestamp;
102 return std::make_shared<JSON_Parser>(topic_name,
data, _checkbox_use_timestamp->isChecked());
104 const char*
name()
const override {
return "JSON"; }
112 return std::make_shared<CBOR_Parser>(topic_name,
data, _checkbox_use_timestamp->isChecked());
114 const char*
name()
const override {
return "CBOR"; }
122 return std::make_shared<BSON_Parser>(topic_name,
data, _checkbox_use_timestamp->isChecked());
124 const char*
name()
const override {
return "BSON"; }
132 return std::make_shared<MessagePack_Parser>(topic_name,
data, _checkbox_use_timestamp->isChecked());
134 const char*
name()
const override {
return "MessagePack"; }
138 #endif // NLOHMANN_PARSERS_H MessageParserPtr createInstance(const std::string &topic_name, PlotDataMapRef &data) override
a class to store JSON values
JSON_Parser(const std::string &topic_name, PlotDataMapRef &data, bool use_msg_stamp)
NlohmannParser(const std::string &topic_name, PlotDataMapRef &data, bool use_msg_stamp)
CBOR_Parser(const std::string &topic_name, PlotDataMapRef &data, bool use_msg_stamp)
const char * name() const override
virtual QWidget * optionsWidget()
const char * name() const override
std::shared_ptr< MessageParser > MessageParserPtr
MessagePack_Parser(const std::string &topic_name, PlotDataMapRef &data, bool use_msg_stamp)
BSON_Parser(const std::string &topic_name, PlotDataMapRef &data, bool use_msg_stamp)
QCheckBoxClose(QString text)
const char * name() const override
MessageParserPtr createInstance(const std::string &topic_name, PlotDataMapRef &data) override
const char * name() const override
MessageParserPtr createInstance(const std::string &topic_name, PlotDataMapRef &data) override
The MessageParser is the base class to create plugins that are able to parse one or multiple Message ...
~QCheckBoxClose() override
MessageParserPtr createInstance(const std::string &topic_name, PlotDataMapRef &data) override
QCheckBox * _checkbox_use_timestamp