Skip to content

DeviceData

struct DeviceData : public std::enable_shared_from_this<DeviceData>

Types

Name Description
InitLevel

Functions

Name Description
DeviceData the initial configuration has arrived
getPathsForConfiguration Called when configuration updates arrive for logging config : a Hash with the updates and their timestamps the : user responsible for this update - if any Called when a Schema update arrive for logging schema : - the new one stamp : - the timestamp to be assigned for that update Retrieves the paths of the leaf nodes in a given configuration. The paths are returned in ascending order of their corresponding nodes timestamps. configuration : A configuration with the nodes corresponding to the paths. schema : The schema for the configuration hash. paths : The paths of the leaf nodes in the configuration, sorted by nodes timestamps. !!! note karabo::devices::DataLogReader depends on the configuration items being properly sorted in time to retrieve configuration changes.

Function Details

DeviceData

DeviceData(const karabo::data::Hash& input)

the initial configuration has arrived

getPathsForConfiguration

void getPathsForConfiguration(const karabo::data::Hash& configuration, const karabo::data::Schema& schema, std::vector<std::string>& paths) const

Called when configuration updates arrive for logging

config : a Hash with the updates and their timestamps

the : user responsible for this update - if any Called when a Schema update arrive for logging

schema : - the new one

stamp : - the timestamp to be assigned for that update Retrieves the paths of the leaf nodes in a given configuration. The paths are returned in ascending order of their corresponding nodes timestamps.

configuration : A configuration with the nodes corresponding to the paths.

schema : The schema for the configuration hash.

paths : The paths of the leaf nodes in the configuration, sorted by nodes timestamps.

Note

karabo::devices::DataLogReader depends on the configuration items being properly sorted in time to retrieve configuration changes.