Class for generating unique UID.
More...
#include <gdcmUIDGenerator.h>
Class for generating unique UID.
- Note
- bla Usage: When constructing a Series or Study UID, user has to keep around the UID, otherwise the UID Generator will simply forget the value and create a new UID.
- Examples:
- CreateJPIPDataSet.cxx, EncapsulateFileInRawData.cxx, Extracting_All_Resolution.cxx, Fake_Image_Using_Stream_Image_Writer.cxx, GenAllVR.cxx, GenFakeIdentifyFile.cxx, GenFakeImage.cxx, GetSubSequenceData.cxx, StreamImageReaderTest.cxx, and uid_unique.cxx.
gdcm::UIDGenerator::UIDGenerator |
( |
| ) |
|
|
inline |
By default the root of a UID is a GDCM Root...
const char* gdcm::UIDGenerator::Generate |
( |
| ) |
|
static bool gdcm::UIDGenerator::GenerateUUID |
( |
unsigned char * |
uuid_data | ) |
|
|
staticprotected |
static const char* gdcm::UIDGenerator::GetGDCMUID |
( |
| ) |
|
|
static |
Return the default (GDCM) root UID:
static const char* gdcm::UIDGenerator::GetRoot |
( |
| ) |
|
|
static |
static bool gdcm::UIDGenerator::IsValid |
( |
const char * |
uid | ) |
|
|
static |
Find out if the string is a valid UID or not
- Todo:
- : Move that in DataStructureAndEncoding (see FileMetaInformation::CheckFileMetaInformation)
static void gdcm::UIDGenerator::SetRoot |
( |
const char * |
root | ) |
|
|
static |
The current implementation in GDCM make use of the UUID implementation (RFC 4122) and has been successfully been tested for a root of size 26 bytes. Any longer root should work (the ::Generate() function will return a string), but will truncate the high bits of the 128bits UUID until the generated string fits on 64 bits. The authors disclaims any responsabitlity for garanteeing uniqueness of UIDs when the root is longer than 26 bytes.
- Examples:
- uid_unique.cxx.
The documentation for this class was generated from the following file: