Go to the documentation of this file.
9 std::optional<armarx::armem::wm::Memory>
34 std::optional<std::pair<armarx::aron::data::DictPtr, armarx::aron::type::ObjectPtr>>
39 if (instance ==
nullptr)
46 const auto* providerSegment =
memory.findProviderSegment(
memoryID);
47 if (providerSegment ==
nullptr)
52 if (!providerSegment->hasAronType())
55 if (coreSegment ==
nullptr || !coreSegment->hasAronType())
59 aronType = coreSegment->aronType();
63 aronType = providerSegment->aronType();
66 return {{aronData, aronType}};
Reads data from a memory server.
wm::Memory memory
The slice of the memory that matched the query.
Brief description of class memory.
std::optional< armarx::armem::wm::Memory > resolveID(armarx::armem::client::MemoryNameSystem &mns, const armarx::armem::MemoryID &memoryID)
resolve a single MemoryID with the given MemoryNameSystem.
QueryResult queryMemoryIDs(const std::vector< MemoryID > &ids, armem::query::DataMode dataMode=armem::query::DataMode::WithData) const
Query a specific set of memory IDs.
static std::string makeMsg(const MemoryID &memoryID, const std::string &errorMessage="")
Client-side working memory.
std::shared_ptr< Dict > DictPtr
The memory name system (MNS) client.
Indicates that a query to the Memory Name System failed.
std::shared_ptr< Object > ObjectPtr
Reader getReader(const MemoryID &memoryID)
Get a reader to the given memory name.
std::optional< std::pair< armarx::aron::data::DictPtr, armarx::aron::type::ObjectPtr > > extractDataAndType(const armarx::armem::wm::Memory &memory, const armarx::armem::MemoryID &memoryID)
get the data and type of the given MemoryID in the given Memory.