SBUUID#
samson.SBUUID
objects can hold Universally Unique IDs (UUIDs), which are used to identify classes and SAMSON Extensions.
See also
SAMSON SDK: SBCContainerUUID
- class samson.SBUUID(*args, **kwargs)#
Bases:
pybind11_object
This class describes a universally unique identifier (UUID).
This class objects can hold Universally Unique IDs (UUIDs), which are used to identify classes and SAMSON Extensions (Elements).
Overloaded function.
__init__(self: samson.SBUUID, uuidStr: str) -> None
Constructs a UUID from a string.
- Parameters:
uuidStr (str) – A valid UUID string.
Examples
Create a UUID object from a string:
>>> uuid = SBUUID('BE5DA3CC-70F7-4963-8B08-2B72BE5A6790') >>> print(uuid) BE5DA3CC-70F7-4963-8B08-2B72BE5A6790
Notes
SAMSON provides the UUID Generator extension which you can use to generate new UUIDs.
__init__(self: samson.SBUUID, u: samson.SBUUID) -> None
Copy constructor.
__init__(self: samson.SBUUID) -> None
Constructs an invalid UUID
- __eq__(self: samson.SBUUID, arg0: samson.SBUUID) bool #
operator ==
- __lt__(self: samson.SBUUID, arg0: samson.SBUUID) bool #
operator < - Lexicographic comparison with another UUID
- __ne__(self: samson.SBUUID, arg0: samson.SBUUID) bool #
operator !=
- property isValid#
Returns True if and only if the UUID is valid. .. rubric:: Examples
Create a UUID object from a string:
>>> uuid = SBUUID('BE5DA3CC-70F7-4963-8B08-2B72BE5A6790') >>> print(uuid.isValid) True