Interface for links. More...
#include <link_datapack_controller.h>
Public Member Functions | |
LinkDataPackController (const std::string &linkName, const physics::LinkPtr &link) | |
void | handleDataPackData (const nlohmann::json &data) override |
Handle received datapack data. More... | |
virtual nlohmann::json * | getDataPackInformation () override |
Get datapack information to be forwarded to the NRP. More... | |
![]() | |
const nlohmann::json & | getEmptyDataPack () const |
![]() | |
DataPackController ()=default | |
Constructor. More... | |
virtual | ~DataPackController ()=default |
Additional Inherited Members | |
![]() | |
JsonDataPackController (const DataPackIdentifier &datapackId) | |
Constructor that should be called by the derived class. More... | |
void | setCachedData (const nlohmann::json &data) |
Sets the "data" part of the cached JSON object. More... | |
nlohmann::json * | getCachedData () |
Returns reference to the "data" part of the cached JSON object. More... | |
![]() | |
DataPackIdentifier | _datapackId |
nlohmann::json | _data |
Cached incoming/outgoing data in JSON format. More... | |
nlohmann::json | _emptyDataPack |
Interface for links.
|
inline |
|
inlineoverridevirtual |
Get datapack information to be forwarded to the NRP.
Implements DataPackController< nlohmann::json >.
|
inlineoverridevirtual |
Handle received datapack data.
data | Data to be processed |
Implements DataPackController< nlohmann::json >.