This class describes a universally unique identifier (UUID). More...
Constructors and destructors | |
SBCContainerUUID (const std::string &u) | |
Constructs a UUID from a std::string. | |
SBCContainerUUID (const SBCContainerUUID &u) | |
Copy constructor. | |
SBCContainerUUID () | |
Constructs an invalid UUID. | |
virtual | ~SBCContainerUUID () |
Destructs the UUID. | |
Operators | |
SBCContainerUUID & | operator= (const SBCContainerUUID &u) |
Assignment operator. | |
bool | operator== (const SBCContainerUUID &u) const |
Equality operator. | |
bool | operator!= (const SBCContainerUUID &u) const |
Non-equality operator. | |
bool | operator< (const SBCContainerUUID &u) const |
Lexicographic comparison with another UUID. | |
std::string | operator() () const |
Returns the UUID in string format. | |
SBCContainerUUID & | operator++ () |
Prefix increment operator. | |
SBCContainerUUID & | operator++ (int) |
Postfix increment operator. | |
Validity | |
bool | isValid () const |
Returns true if and only if the UUID is valid. | |
SBCContainerUUID objects can hold Universally Unique IDs (UUIDs), which are used to identify classes and SAMSON Elements. In many cases, UUIDs are automatically generated thanks to the SAMSON Element generator.
UUIDs may be used e.g. to retrieve class proxies:
When necessary, SBRandom can be used to generate UUIDs :
Short name: SBUUID