Skip to content
Snippets Groups Projects
Commit 3f81a7e3 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Add ObjectID::getClassID()

parent 15216d26
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,11 @@ namespace armarx
return _str;
}
ObjectID ObjectID::getClassID() const
{
return ObjectID(_dataset, _className);
}
bool ObjectID::equalClass(const ObjectID& rhs) const
{
return _className == rhs._className && _dataset == rhs._dataset;
......
......@@ -38,6 +38,8 @@ namespace armarx
/// Return "dataset/className" or "dataset/className/instanceName".
std::string str() const;
/// Return just the class ID without an intance name.
ObjectID getClassID() const;
/// Indicates whether dataset and class name are equal.
bool equalClass(const ObjectID& rhs) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment