|
Helps a memory client sending data to a memory. More...
#include <RobotAPI/libraries/armem/client/Writer.h>
Public Member Functions | |
data::AddSegmentResult | addSegment (const data::AddSegmentInput &input) const |
data::AddSegmentResult | addSegment (const MemoryID &providerSegmentID, bool clearWhenExists=false) const |
data::AddSegmentResult | addSegment (const std::pair< std::string, std::string > &names, bool clearWhenExists=false) const |
data::AddSegmentResult | addSegment (const std::string &coreSegmentName, const std::string &providerSegmentName, bool clearWhenExists=false) const |
data::AddSegmentsResult | addSegments (const data::AddSegmentsInput &input) const |
CommitResult | commit (const Commit &commit) const |
Writes a Commit to the memory. More... | |
data::CommitResult | commit (const data::Commit &commit) const |
EntityUpdateResult | commit (const EntityUpdate &update) const |
Commit a single entity update. More... | |
EntityUpdateResult | commit (const MemoryID &entityID, const std::vector< aron::data::DictPtr > &instancesData, Time referencedTime) const |
Commit a single entity update. More... | |
operator bool () const | |
void | setWritingMemory (server::WritingMemoryInterfacePrx memory) |
Writer (const Writer &)=default | |
Construct a memory writer. More... | |
Writer (server::WritingMemoryInterfacePrx memory=nullptr) | |
Public Attributes | |
server::WritingMemoryInterfacePrx | memory |
Helps a memory client sending data to a memory.
You can check whether the writer is ready using the bool operator:
Writer | ( | server::WritingMemoryInterfacePrx | memory = nullptr | ) |
Definition at line 11 of file Writer.cpp.
data::AddSegmentResult addSegment | ( | const data::AddSegmentInput & | input | ) | const |
data::AddSegmentResult addSegment | ( | const MemoryID & | providerSegmentID, |
bool | clearWhenExists = false |
||
) | const |
data::AddSegmentResult addSegment | ( | const std::pair< std::string, std::string > & | names, |
bool | clearWhenExists = false |
||
) | const |
Definition at line 36 of file Writer.cpp.
data::AddSegmentResult addSegment | ( | const std::string & | coreSegmentName, |
const std::string & | providerSegmentName, | ||
bool | clearWhenExists = false |
||
) | const |
data::AddSegmentsResult addSegments | ( | const data::AddSegmentsInput & | input | ) | const |
CommitResult commit | ( | const Commit & | commit | ) | const |
Writes a Commit
to the memory.
Definition at line 59 of file Writer.cpp.
data::CommitResult commit | ( | const data::Commit & | commit | ) | const |
EntityUpdateResult commit | ( | const EntityUpdate & | update | ) | const |
Commit a single entity update.
Definition at line 82 of file Writer.cpp.
EntityUpdateResult commit | ( | const MemoryID & | entityID, |
const std::vector< aron::data::DictPtr > & | instancesData, | ||
Time | referencedTime | ||
) | const |
Commit a single entity update.
Definition at line 93 of file Writer.cpp.
void setWritingMemory | ( | server::WritingMemoryInterfacePrx | memory | ) |