EventData¶
General description¶
Data packets of the EventData type hold a string that describes the event. Processors that operate on EventData will usually specify what events they generate on their output ports or what events they expect at their input ports.
Payload details¶
name |
type |
description |
|---|---|---|
event |
string |
event string |
API¶
-
class Data : public IData<Data, ParentType>
Public Types
-
using BaseClass = IData<Data, ParentType>
Public Functions
-
Data(std::string event = DEFAULT_EVENT)
-
inline Data(const Parameters ¶meters)
-
inline Parameters parameters() const
-
void ClearData() override
-
std::string event() const
-
size_t hash() const
-
size_t size() const
-
void set_event(std::string event)
-
void set_event(const Data &source)
-
void SerializeBinary(std::ostream &stream, Serialization::Format format = Serialization::Format::FULL) const override
-
void SerializeYAML(YAML::Node &node, Serialization::Format format = Serialization::Format::FULL) const override
-
void SerializeFlatBuffer(flexbuffers::Builder &fbb) override
-
void YAMLDescription(YAML::Node &node, Serialization::Format format = Serialization::Format::FULL) const override
Public Static Functions
-
static inline const std::string static_datatype()
-
static inline const std::string static_dataname()
-
using BaseClass = IData<Data, ParentType>
Parameters¶
name |
type |
description |
validation |
|---|---|---|---|
event |
string |
default event string |
cannot be empty |
-
struct Parameters
Public Functions
-
inline Parameters(std::string event = DEFAULT_EVENT)
Public Members
-
std::string default_event
-
inline Parameters(std::string event = DEFAULT_EVENT)
Capabilities¶
no particular capabilities
Binary Serialization¶
For serialization formats FULL and COMPACT, the event string is serialized as a 128-byte long string.
YAML Serialization¶
For serialization formats FULL and COMPACT, the following YAML is emitted:
event: [event string]