|
DCMTK Version 3.7.1
OFFIS DICOM Toolkit
|
The OFUUIDGenerator class provides a means to create an OFUUID. More...
Classes | |
| class | Uint32_32 |
| Helper type for internal use in OFUUIDGenerator. More... | |
Public Types | |
| typedef Uint8(*) | rnd8() |
| The type of a user providable random number generator (RNG) functor. | |
Static Public Member Functions | |
| static OFshared_ptr< OFUUID > | create (rnd8 const &=getRND8) |
| Creates an OFUUID based on RFC 9562, section 5.7. | |
Private Member Functions | |
| OFUUIDGenerator () | |
| Default constructor. | |
| virtual | ~OFUUIDGenerator () |
| Destructor. | |
Static Private Member Functions | |
| static Uint32_32 | getMillisecondsSinceEpoch () |
| Calculates the number of milliseconds since January 1, 1970. | |
| static Uint8 | getRND8 () |
| Wrapper for OFRandom::getRND8. | |
| static OFBool | initializeIfNecessary () |
| Checks whether initialization is necessary and performs it if required. | |
| static void | setupOFUUIDDataMember (OFUUID *const ofuuid, rnd8 const &rnd) |
| Sets up the individual fields (OFUUID::data_) of an OFUUID. | |
The OFUUIDGenerator class provides a means to create an OFUUID.
|
static |
Creates an OFUUID based on RFC 9562, section 5.7.
| rnd | A random number generator (RNG) functor. Provide if special requirements with respect to unguessability of the to be created OFUUID exist. See RFC 9562, section 6.9 for details. |
References getRND8().
|
staticprivate |
Calculates the number of milliseconds since January 1, 1970.
|
staticprivate |
|
staticprivate |
Checks whether initialization is necessary and performs it if required.
|
staticprivate |
Sets up the individual fields (OFUUID::data_) of an OFUUID.
| [in,out] | ofuuid | The to be assembled OFUUID. |
| [in] | rnd | The random number genaratr functor to use. |