Go to the documentation of this file.
9 std::optional<armarx::armem::wm::Memory>
33 std::optional<std::pair<armarx::aron::data::DictPtr, armarx::aron::type::ObjectPtr>>
38 if (instance ==
nullptr)
45 const auto* providerSegment =
memory.findProviderSegment(
memoryID);
46 if (providerSegment ==
nullptr)
51 if (!providerSegment->hasAronType())
54 if (coreSegment ==
nullptr || !coreSegment->hasAronType())
58 aronType = coreSegment->aronType();
62 aronType = providerSegment->aronType();
65 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.