Go to the documentation of this file.
22 #ifndef JSON_DATAPACK_CONTROLLER_H
23 #define JSON_DATAPACK_CONTROLLER_H
30 #include <nlohmann/json.hpp>
106 #endif // JSON_DATAPACK_CONTROLLER_H
std::string Type
DataPack Type.
Definition: datapack_interface.h:54
static std::string getType()
Returns type of the datapack class.
Definition: datapack.h:61
void setCachedData(const nlohmann::json &data)
Sets the "data" part of the cached JSON object.
Definition: json_datapack_controller.h:78
std::string Name
DataPack Name. Used by simulator to identify source/sink of datapack.
Definition: datapack_interface.h:44
nlohmann::json * getCachedData()
Returns reference to the "data" part of the cached JSON object.
Definition: json_datapack_controller.h:89
Helper class to handle DataPacks on the Engine Server side.
Definition: datapack_controller.h:34
Base controller class for JSON datapacks.
Definition: json_datapack_controller.h:43
static EXCEPTION logCreate(LOG_EXCEPTION_T &exception, const std::string &msg, NRPLogger::spdlog_out_fcn_t spdlogCall=NRPLogger::critical)
Definition: nrp_exceptions.h:73
JsonDataPackController(const DataPackIdentifier &datapackId)
Constructor that should be called by the derived class.
Definition: json_datapack_controller.h:57
Identifies a single datapack.
Definition: datapack_interface.h:38
nlohmann::json _data
Cached incoming/outgoing data in JSON format.
Definition: json_datapack_controller.h:102
std::string EngineName
Corresponding engine.
Definition: datapack_interface.h:49
nlohmann::json _emptyDataPack
Definition: json_datapack_controller.h:103
const nlohmann::json & getEmptyDataPack() const
Definition: json_datapack_controller.h:47
nlohmann::json json
Definition: engine_json_server.cpp:31
DataPackIdentifier _datapackId
Definition: json_datapack_controller.h:94