The key writer to write the data element associated with a given key. More...
#include <DataStorm/DataStorm.h>
Public Member Functions | |
SingleKeyWriter (const Topic< Key, Value, UpdateTag > &topic, const Key &key, std::string name=std::string(), const WriterConfig &config=WriterConfig()) | |
Constructs a new writer for the given key. | |
SingleKeyWriter (SingleKeyWriter &&writer) noexcept | |
Move constructor. | |
void | add (const Value &value) |
Adds the data element. | |
SingleKeyWriter & | operator= (SingleKeyWriter &&writer) noexcept |
Move assignment operator. | |
template<typename UpdateValue> | |
std::function< void(const UpdateValue &)> | partialUpdate (const UpdateTag &tag) |
Gets a partial update generator function for the given partial update tag. | |
void | remove () noexcept |
Removes the data element. This generates a SampleEvent::Remove sample. | |
void | update (const Value &value) |
Updates the data element. |
The key writer to write the data element associated with a given key.
Definition at line 726 of file DataStorm.h.