template class DataPackController

Overview

Helper class to handle DataPacks on the Engine Server side. More…

#include <datapack_controller.h>

template <class DATA_TYPE>
class DataPackController {
public:
    // methods

    virtual DATA_TYPE* getDataPackInformation() = 0;
    virtual void handleDataPackData(const DATA_TYPE& data) = 0;
};

// direct descendants

class CameraGrpcDataPackController;
class JointGrpcDataPackController;
class JsonDataPackController;
class LinkGrpcDataPackController;
class ModelGrpcDataPackController;

Detailed Documentation

Helper class to handle DataPacks on the Engine Server side.

As a general policy DataDataPackController is not supposed to take ownership of DATA_TYPE objects which receives or returns. This must be consider for each DataDataPackController specialization.

Parameters:

DATA_TYPE

Object type that this controller handles

Methods

virtual DATA_TYPE* getDataPackInformation() = 0

Get datapack information to be forwarded to the NRP.

Returns:

Returns a DATA_TYPE pointer containing requested data

virtual void handleDataPackData(const DATA_TYPE& data) = 0

Handle received datapack data.

Parameters:

data

Data to be processed