A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
More...
#include <RobotAPI/libraries/ArmarXObjects/ObjectID.h>
|
static ObjectID | FromString (const std::string &idString) |
| Construct from a string produced by str() , e.g. ("mydataset/myobject", "mydataset/myclass/myinstance"). More...
|
|
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
Definition at line 11 of file ObjectID.h.
◆ ObjectID() [1/3]
◆ ObjectID() [2/3]
ObjectID |
( |
const std::string & |
dataset, |
|
|
const std::string & |
className, |
|
|
const std::string & |
instancName = "" |
|
) |
| |
◆ ObjectID() [3/3]
ObjectID |
( |
const std::string & |
nameOrID | ) |
|
Construct from either a class name ("myobject") or ID ("mydataset/myobject", "mydataset/myclass/myinstance").
Definition at line 18 of file ObjectID.cpp.
◆ className()
std::string className |
( |
| ) |
const |
|
inline |
◆ dataset()
std::string dataset |
( |
| ) |
const |
|
inline |
◆ equalClass()
bool equalClass |
( |
const ObjectID & |
rhs | ) |
const |
Indicates whether dataset and class name are equal.
Definition at line 70 of file ObjectID.cpp.
◆ FromString()
ObjectID FromString |
( |
const std::string & |
idString | ) |
|
|
static |
Construct from a string produced by str()
, e.g. ("mydataset/myobject", "mydataset/myclass/myinstance").
Definition at line 31 of file ObjectID.cpp.
◆ getClassID()
Return just the class ID without an intance name.
Definition at line 65 of file ObjectID.cpp.
◆ instanceName()
std::string instanceName |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool operator!= |
( |
const ObjectID & |
rhs | ) |
const |
|
inline |
◆ operator<()
bool operator< |
( |
const ObjectID & |
rhs | ) |
const |
◆ operator<=()
bool operator<= |
( |
const ObjectID & |
rhs | ) |
const |
|
inline |
◆ operator==()
bool operator== |
( |
const ObjectID & |
rhs | ) |
const |
Indicates whether dataset, class name and instance name are equal.
Definition at line 80 of file ObjectID.cpp.
◆ operator>()
bool operator> |
( |
const ObjectID & |
rhs | ) |
const |
|
inline |
◆ operator>=()
bool operator>= |
( |
const ObjectID & |
rhs | ) |
const |
|
inline |
◆ setFromString()
void setFromString |
( |
const std::string & |
idString | ) |
|
◆ setInstanceName()
void setInstanceName |
( |
const std::string & |
instanceName | ) |
|
|
inline |
◆ str()
std::string str |
( |
| ) |
const |
Return "dataset/className" or "dataset/className/instanceName".
Definition at line 55 of file ObjectID.cpp.
◆ withInstanceName()
ObjectID withInstanceName |
( |
const std::string & |
instanceName | ) |
const |
The documentation for this class was generated from the following files: