Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitk::UIDGenerator Class Reference

Generated unique IDs. More...

#include <mitkUIDGenerator.h>

Public Member Functions

 UIDGenerator (const char *prefix="")
 
std::string GetUID ()
 

Detailed Description

Generated unique IDs.

Creates unique IDs.

The current implementation uses the UUID specification (https://www.ietf.org/rfc/rfc4122.txt) and random generator. One may define a prefix for the UID string. But it is not needed to guarantee uniqueness. It is just a human readable addition, e.g. to see for which purpose the UID was generated.

Definition at line 31 of file mitkUIDGenerator.h.

Constructor & Destructor Documentation

◆ UIDGenerator()

mitk::UIDGenerator::UIDGenerator ( const char *  prefix = "")
explicit

Member Function Documentation

◆ GetUID()

std::string mitk::UIDGenerator::GetUID ( )
Returns
Returns a unique ID as string. You will get another unique ID each time you call GetUID.

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