Medical Imaging Interaction Toolkit  2022.10.99-122321bb
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 ( 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 = "")

Member Function Documentation

◆ GetUID()

std::string mitk::UIDGenerator::GetUID ( )
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: