Skip to content

MetaData

class MetaData : protected karabo::data::Hash

@brief The MetaData class is s class for transporting meta data related to data tokens on pipelined processing interfaces. It derives from karabo::data::Hash for transparent serialization.

Functions

Name Description
MetaData Constructor to directly set meta data entries source : an identifier of the data producer timestamp : a timestamp relevant for this data token.
setSource Set data source, i.e. identifier of the data producer source :
getSource Get data source, i.e. identifier of the data producer Return :
setTimestamp Set the timestamp relevant to this data token timestamp :
getTimestamp Get the timestamp relevant to this data token Return :

Function Details

MetaData

MetaData(const std::string& source, const karabo::data::Timestamp& timestamp)

Constructor to directly set meta data entries

source : an identifier of the data producer

timestamp : a timestamp relevant for this data token.

getSource

inline const std::string& getSource() const

Get data source, i.e. identifier of the data producer

Return :

getTimestamp

inline const karabo::data::Timestamp getTimestamp() const

Get the timestamp relevant to this data token

Return :

setSource

inline void setSource(const std::string& source)

Set data source, i.e. identifier of the data producer

source :

setTimestamp

inline void setTimestamp(const karabo::data::Timestamp& timestamp)

Set the timestamp relevant to this data token

timestamp :