9 std::optional<armem::clazz::ObjectClass>
15 mid.providerSegmentName = providerName;
16 mid.entityName =
id.str();
20 if (i.has_value() && i->size() == 1)
23 auto aron =
instance.dataAs<armarx::armem::arondto::ObjectClass>();
34 std::map<ObjectID, armem::clazz::ObjectClass>
44 for (
const ObjectID& objectID : objectIDs)
46 entities.withName(objectID.getClassID().str()).snapshots().latest();
55 std::map<ObjectID, armem::clazz::ObjectClass> objectClasses;
61 auto aron =
instance.dataAs<armarx::armem::arondto::ObjectClass>();
70 std::map<ObjectID, armem::clazz::ObjectClass>
89 std::map<ObjectID, armem::clazz::ObjectClass> objectClasses;
95 auto aron =
instance.dataAs<armarx::armem::arondto::ObjectClass>();
101 return objectClasses;
107 return "classReader.";
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
static ObjectID FromString(const std::string &idString)
Construct from a string produced by str(), e.g. ("mydataset/myobject", "mydataset/myclass/myinstance"...
QueryResult query(const QueryInput &input) const
Perform a query on the WM.
std::optional< wm::EntitySnapshot > getLatestSnapshotIn(const MemoryID &id, armem::query::DataMode dataMode=armem::query::DataMode::WithData) const
Get the latest snapshot under the given memory ID.
The query::Builder class provides a fluent-style specification of hierarchical queries.
CoreSegmentSelector & coreSegments()
Start specifying core segments.
CoreSegmentSelector & withName(const std::string &name) override
ProviderSegmentSelector & providerSegments()
Start specifying provider segments.
EntitySelector & all() override
SnapshotSelector & snapshots()
Start specifying entity snapshots.
EntitySelector & entities()
Start specifying entities.
ProviderSegmentSelector & all() override
SnapshotSelector & latest()
const armem::client::Reader & memoryReader() const
const Properties & properties() const
Indicates that a query resulted in an Error.
std::optional< armem::clazz::ObjectClass > getObjectClass(const std::string &providerName, const armarx::ObjectID &id)
std::map< armarx::ObjectID, armem::clazz::ObjectClass > getObjectClasses(const std::vector< armarx::ObjectID > &objectIDs)
Get object class information for object class IDs.
std::map< armarx::ObjectID, armem::clazz::ObjectClass > getAllObjectClasses()
Properties defaultProperties() const final
std::string propertyPrefix() const final
Client-side working entity instance.
void fromAron(const armarx::armem::arondto::Feature &dto, Feature &bo)
bool forEachInstance(InstanceFunctionT &&func)
wm::Memory memory
The slice of the memory that matched the query.
std::string coreSegmentName