Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef MITK_UID_GENERATOR_INDCLUDED_FASAWE
00019 #define MITK_UID_GENERATOR_INDCLUDED_FASAWE
00020
00021 #include<string>
00022 #include "mitkCommon.h"
00023
00024 namespace mitk {
00025
00037 class MITK_CORE_EXPORT UIDGenerator
00038 {
00039 public:
00040 UIDGenerator(const char* prefix = "UID_", unsigned int lengthOfRandomPart = 8);
00041
00042 std::string GetUID();
00043 private:
00044 std::string m_Prefix;
00045 unsigned int m_LengthOfRandomPart;
00046 };
00047
00048 }
00049
00050 #endif