Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
mitkUIDGenerator.h
Go to the documentation of this file.
1
/*===================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#ifndef MITK_UID_GENERATOR_INDCLUDED_FASAWE
18
#define MITK_UID_GENERATOR_INDCLUDED_FASAWE
19
20
#include <
MitkCoreExports.h
>
21
#include <itkMersenneTwisterRandomVariateGenerator.h>
22
#include <string>
23
24
#ifdef _MSC_VER
25
#pragma warning(push)
26
#pragma warning(disable : 4251)
27
#endif
28
29
namespace
mitk
30
{
44
class
MITKCORE_EXPORT
UIDGenerator
45
{
46
public
:
47
UIDGenerator
(
const
char
*prefix =
"UID_"
,
unsigned
int
lengthOfRandomPart = 8);
48
50
std::string GetUID();
51
52
private
:
53
std::string m_Prefix;
54
unsigned
int
m_LengthOfRandomPart;
55
itk::Statistics::MersenneTwisterRandomVariateGenerator::Pointer
m_RandomGenerator;
56
};
57
}
58
59
#ifdef _MSC_VER
60
#pragma warning(pop)
61
#endif
62
63
#endif
mitk::Pointer
itk::SmartPointer< Self > Pointer
Definition:
mitkRenderingManager.h:389
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
mitk::UIDGenerator
Generated unique IDs.
Definition:
mitkUIDGenerator.h:44
MitkCoreExports.h
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
GeometryOverview.dox:1
git
MITK
Modules
Core
include
mitkUIDGenerator.h
Generated on Fri Feb 3 2017 20:52:11 for Medical Imaging Interaction Toolkit by
1.8.9.1