class NestEngineJSONDataPackController

Overview

#include <nest_engine_datapack_controller.h>

class NestEngineJSONDataPackController: public JsonDataPackController {
public:
    // construction

    NestEngineJSONDataPackController(
        const DataPackIdentifier& devID,
        boost::python::object nodeCollection,
        boost::python::dict nest
    );

    // methods

    virtual void handleDataPackData(const nlohmann::json& data);
    virtual nlohmann::json* getDataPackInformation();
    void setNestID(boost::python::dict nest, boost::python::object nodeCollection);
};

Inherited Members

public:
    // methods

    virtual DATA_TYPE* getDataPackInformation() = 0;
    virtual void handleDataPackData(const DATA_TYPE& data) = 0;
    const nlohmann::json& getEmptyDataPack() const;

Detailed Documentation

Methods

virtual void handleDataPackData(const nlohmann::json& data)

Handle received datapack data.

Parameters:

data

Data to be processed

virtual nlohmann::json* getDataPackInformation()

Get datapack information to be forwarded to the NRP.

Returns:

Returns a DATA_TYPE pointer containing requested data

void setNestID(boost::python::dict nest, boost::python::object nodeCollection)

Set Nest properties.

Parameters:

nest

Nest instance

nodeCollection

Nest GIDs of model managed by this controller