An OFUUID represents a Universally Unique Identifier (UUID) as described in RFC 9562.
More...
|
|
static OFUUID const | nil |
| | A OFFUID with all bits set to zero (0).
|
|
static OFUUID const | max |
| | A OFFUID with all bits set to one (1).
|
|
| static void | divideBy10 (Uint8 const n, Uint8 &q, Uint8 &r) |
| | Given:
|
|
|
static size_t const | DATA_LENGTH = 16 |
| | The number of Uint8 octets that make up this OFUUID.
|
An OFUUID represents a Universally Unique Identifier (UUID) as described in RFC 9562.
The constants OFUUID::nil and OFUUID::max do not comply to RFC 9562 but may be considered UUIDs nonetheless. See RFC 9562, sections 5.9 and 5.10 for details.
◆ Notation
The possible notations of an OFUUID.
| Enumerator |
|---|
| NotationInteger | The OFUUID is represented as one, long (unsigned) integer in base 10 (up to 39 digits long).
|
| NotationCanonical | The OFUUID is represented in the canonical "hex-and-dash" format consisting of multiple groups of lowercase alphanumeric hexadecimal characters separated by single dashes/hyphens.
|
| NotationOID | The OFUUID is represented in integer notation with the prefix 2.25.
|
| NotationURN | The OFUUID is represented in canonical notation with the prefix urn:uuid:.
|
| NotationDefault | The default notation that is used when none is given.
|
◆ OFUUID()
| OFUUID::OFUUID |
( |
Uint8 const | fill = 0 | ) |
|
|
private |
◆ divideBy10()
| void OFUUID::divideBy10 |
( |
Uint8 const | n, |
|
|
Uint8 & | q, |
|
|
Uint8 & | r ) |
|
staticprivate |
Given:
This calculates the integer quotient q := m / 10 and the integer remainder r := m % 10.
- Parameters
-
| [in] | n | The first summand of m (see above). |
| [out] | q | The calculated quotient. |
| [in,out] | r | A factor of the second summand of m (see above). [in]
The calculated remainder. [out] |
◆ isMax()
| OFBool OFUUID::isMax |
( |
| ) |
const |
|
private |
◆ isNil()
| OFBool OFUUID::isNil |
( |
| ) |
const |
|
private |
◆ print()
| STD_NAMESPACE ostream & OFUUID::print |
( |
STD_NAMESPACE ostream & | os, |
|
|
Notation const | notation = NotationDefault ) const |
Writes a string representation of this OFUUID to a stream.
- Parameters
-
| os | The stream to write to. |
| notation | The Notation to use. |
- Returns
os
References NotationDefault.
◆ printCanonical()
| void OFUUID::printCanonical |
( |
STD_NAMESPACE ostream & | os | ) |
const |
|
private |
Writes the OFUUID in canonical notation to a stream.
- Parameters
-
| os | The stream to write to. |
◆ printInteger()
| void OFUUID::printInteger |
( |
STD_NAMESPACE ostream & | os | ) |
const |
|
private |
Writes the OFUUID in integer notation to a stream.
- Parameters
-
| os | The stream to write to. |
◆ toString()
◆ operator!=
| DCMTK_OFSTD_EXPORT OFBool operator!= |
( |
OFUUID const & | lhs, |
|
|
OFUUID const & | rhs ) |
|
friend |
Inequality operator.
- Parameters
-
| lhs | The left OFUUID for comparison. |
| rhs | The right OFUUID for comparison. |
- Returns
- OFTrue iff lhs' and rhs' integer notations are mathematically unequal.
References OFUUID().
◆ operator<
| DCMTK_OFSTD_EXPORT OFBool operator< |
( |
OFUUID const & | lhs, |
|
|
OFUUID const & | rhs ) |
|
friend |
Less than operator.
- Parameters
-
| lhs | The left OFUUID for comparison. |
| rhs | The right OFUUID for comparison. |
- Returns
- OFTrue iff lhs' integer notation is mathematically smaller than rhs' integer notation.
References OFUUID().
◆ operator<<
| DCMTK_OFSTD_EXPORT STD_NAMESPACE ostream & operator<< |
( |
STD_NAMESPACE ostream & | os, |
|
|
OFUUID const & | uuid ) |
|
friend |
Writes an OFUUID to a stream in canonical notation.
- Parameters
-
| os | The stream to write to. |
| uuid | The OFUUID to write. |
- Returns
os
References OFUUID().
◆ operator<=
| DCMTK_OFSTD_EXPORT OFBool operator<= |
( |
OFUUID const & | lhs, |
|
|
OFUUID const & | rhs ) |
|
friend |
Less than or equal to operator.
- Parameters
-
| lhs | The left OFUUID for comparison. |
| rhs | The right OFUUID for comparison. |
- Returns
- OFTrue iff lhs' integer notation is mathematically less than or equal to rhs' integer notation.
References OFUUID().
◆ operator==
| DCMTK_OFSTD_EXPORT OFBool operator== |
( |
OFUUID const & | lhs, |
|
|
OFUUID const & | rhs ) |
|
friend |
Equality operator.
- Parameters
-
| lhs | The left OFUUID for comparison. |
| rhs | The right OFUUID for comparison. |
- Returns
- OFTrue iff lhs' and rhs' integer notations are mathematically equal.
References OFUUID().
◆ operator>
| DCMTK_OFSTD_EXPORT OFBool operator> |
( |
OFUUID const & | lhs, |
|
|
OFUUID const & | rhs ) |
|
friend |
Greater than operator.
- Parameters
-
| lhs | The left OFUUID for comparison. |
| rhs | The right OFUUID for comparison. |
- Returns
- OFTrue iff lhs' integer notation is mathematically bigger than rhs' integer notation.
References OFUUID().
◆ operator>=
| DCMTK_OFSTD_EXPORT OFBool operator>= |
( |
OFUUID const & | lhs, |
|
|
OFUUID const & | rhs ) |
|
friend |
Greater than or equal to operator.
- Parameters
-
| lhs | The left OFUUID for comparison. |
| rhs | The right OFUUID for comparison. |
- Returns
- OFTrue iff lhs' integer notation is mathematically bigger than or equal to rhs' integer notation.
References OFUUID().
The documentation for this class was generated from the following file:
- ofstd/include/dcmtk/ofstd/ofuuid.h