Class SBCContainerUUID#
This class describes a universally unique identifier (UUID). More...
#include <SBCContainerUUID.hpp>
Public Attributes#
Type | Name |
---|---|
std::array< uint8_t, 16 > | data |
Public Static Attributes#
Type | Name |
---|---|
SBCContainerUUID | invalid |
Public Functions#
Type | Name |
---|---|
SBCContainerUUID (const std::array< uint8_t, 16 > & data) Constructs a UUID from internal data. |
|
SBCContainerUUID (const std::string & uuid) Constructs a UUID from a std::string. |
|
SBCContainerUUID (const SBCContainerUUID & other) Copy constructor. |
|
SBCContainerUUID (SBCContainerUUID && other) noexcept Move constructor. |
|
SBCContainerUUID () Constructs an invalid UUID. |
|
bool | isValid () const Returns true if and only if the UUID is valid. |
bool | operator!= (const SBCContainerUUID & other) const Non-equality operator. |
std::string | operator() () const Returns the UUID in string format. |
SBCContainerUUID & | operator++ () Prefix increment operator. |
SBCContainerUUID | operator++ (int) Postfix increment operator. |
SBCContainerUUID & | operator-- () Prefix decrement operator. |
SBCContainerUUID | operator-- (int) Postfix decrement operator. |
bool | operator< (const SBCContainerUUID & other) const Lexicographic comparison with another UUID. |
SBCContainerUUID & | operator= (const SBCContainerUUID & other) Copy assignment operator. |
SBCContainerUUID & | operator= (SBCContainerUUID && other) Move assignment operator. |
bool | operator== (const SBCContainerUUID & other) const Equality operator. |
virtual | ~SBCContainerUUID () Destructs the UUID. |
Detailed Description#
SBCContainerUUID objects can hold Universally Unique IDs (UUIDs), which are used to identify classes and SAMSON Extensions. In many cases, UUIDs are automatically generated thanks to the SAMSON Extension Generator.
UUIDs may be used e.g. to retrieve class proxies:
SBCClassProxy* classProxy = 0;
std::string className("ClassName");
std::string elementName("ElementName");
SBUUID elementUUID("0CE16BE8-8AA1-75C4-31A8-B3FA1CE93A94");
// retrieve a class proxy
classProxy = SAMSON::getProxy(className, elementName, elementUUID);
When necessary, SBRandom can be used to generate UUIDs :
Short name: SBUUID
See also: Identifiers, SAMSON Extension Generator, SBRandom
Public Attributes Documentation#
variable data#
Public Static Attributes Documentation#
variable invalid#
Public Functions Documentation#
function SBCContainerUUID [1/5]#
Constructs a UUID from internal data.
function SBCContainerUUID [2/5]#
Constructs a UUID from a std::string.
function SBCContainerUUID [3/5]#
Copy constructor.
function SBCContainerUUID [4/5]#
Move constructor.
function SBCContainerUUID [5/5]#
Constructs an invalid UUID.
function isValid#
Returns true if and only if the UUID is valid.
function operator!=#
Non-equality operator.
function operator()#
Returns the UUID in string format.
function operator++#
Prefix increment operator.
function operator++#
Postfix increment operator.
function operator--#
Prefix decrement operator.
function operator--#
Postfix decrement operator.
function operator<#
Lexicographic comparison with another UUID.
function operator=#
Copy assignment operator.
function operator=#
Move assignment operator.
function operator==#
Equality operator.
function ~SBCContainerUUID#
Destructs the UUID.