|
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) |
data::AddSegmentResult | addSegment (const MemoryID &providerSegmentID, bool clearWhenExists=false) |
data::AddSegmentResult | addSegment (const std::pair< std::string, std::string > &names, bool clearWhenExists=false) |
data::AddSegmentResult | addSegment (const std::string &coreSegmentName, const std::string &providerSegmentName, bool clearWhenExists=false) |
data::AddSegmentsResult | addSegments (const data::AddSegmentsInput &input) |
CommitResult | commit (const Commit &commit) |
Writes a Commit to the memory. More... | |
data::CommitResult | commit (const data::Commit &commit) |
EntityUpdateResult | commit (const EntityUpdate &update) |
Commit a single entity update. More... | |
EntityUpdateResult | commit (const MemoryID &entityID, const std::vector< aron::data::DictPtr > &instancesData, Time referencedTime) |
Commit a single entity update. More... | |
operator bool () const | |
void | setWritingMemory (server::WritingMemoryInterfacePrx memory) |
Writer (server::WritingMemoryInterfacePrx memory=nullptr) | |
Construct a memory writer. More... | |
Data Fields | |
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 | ) |
Construct a memory writer.
memory | The memory proxy. |
Definition at line 12 of file Writer.cpp.
data::AddSegmentResult addSegment | ( | const data::AddSegmentInput & | input | ) |
data::AddSegmentResult addSegment | ( | const MemoryID & | providerSegmentID, |
bool | clearWhenExists = false |
||
) |
data::AddSegmentResult addSegment | ( | const std::pair< std::string, std::string > & | names, |
bool | clearWhenExists = false |
||
) |
data::AddSegmentResult addSegment | ( | const std::string & | coreSegmentName, |
const std::string & | providerSegmentName, | ||
bool | clearWhenExists = false |
||
) |
data::AddSegmentsResult addSegments | ( | const data::AddSegmentsInput & | input | ) |
CommitResult commit | ( | const Commit & | commit | ) |
Writes a Commit
to the memory.
Definition at line 51 of file Writer.cpp.
data::CommitResult commit | ( | const data::Commit & | commit | ) |
EntityUpdateResult commit | ( | const EntityUpdate & | update | ) |
Commit a single entity update.
Definition at line 74 of file Writer.cpp.
EntityUpdateResult commit | ( | const MemoryID & | entityID, |
const std::vector< aron::data::DictPtr > & | instancesData, | ||
Time | referencedTime | ||
) |
Commit a single entity update.
Definition at line 84 of file Writer.cpp.
void setWritingMemory | ( | server::WritingMemoryInterfacePrx | memory | ) |