Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitk::UIDGenerator Class Reference

Generated unique IDs. More...

#include <mitkUIDGenerator.h>

Public Member Functions

 UIDGenerator (const char *prefix="UID_", unsigned int lengthOfRandomPart=8)
 
std::string GetUID ()
 

Detailed Description

Generated unique IDs.

Creates unique IDs from a given prefix, the current date/time and a random part. Be aware that, a length of one or two might not be sufficient.

The prefix is given to the constructor, together with the desired length of the random part.

The current implementation uses the time in seconds in combination with an a random part.

Definition at line 34 of file mitkUIDGenerator.h.

Constructor & Destructor Documentation

◆ UIDGenerator()

mitk::UIDGenerator::UIDGenerator ( const char *  prefix = "UID_",
unsigned int  lengthOfRandomPart = 8 
)

Definition at line 19 of file mitkUIDGenerator.cpp.

Member Function Documentation

◆ GetUID()


The documentation for this class was generated from the following files: