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

Fix string constructor of ObjectID

parent f7475472
No related branches found
No related tags found
No related merge requests found
......@@ -25,10 +25,14 @@ namespace armarx
<< ", but got: '" << nameOrID << "' (too many '/').";
_dataset = split[0];
_className = split[1];
if (split.size() == 3)
{
_instanceName = split[2];
}
}
else
{
// dataset is left empty.
// Dataset, instanceName are left empty.
_className = nameOrID;
}
}
......
......@@ -14,7 +14,7 @@ namespace armarx
ObjectID();
ObjectID(const std::string& dataset, const std::string& className, const std::string& instancName = "");
/// Construct from either a name ("myobject") or ID ("mydataset/myobject", "mydataset/myclass/myinstance").
/// Construct from either a class name ("myobject") or ID ("mydataset/myobject", "mydataset/myclass/myinstance").
ObjectID(const std::string& nameOrID);
......
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