GDCM: gdcmUUIDGenerator.h Source File

GDCM 3.0.26

gdcmUUIDGenerator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMUUIDGENERATOR_H
15#define GDCMUUIDGENERATOR_H
16
17#include "gdcmTypes.h"
18
19namespace gdcm
20{
21
26 class GDCM_EXPORT UUIDGenerator
27{
28public:
31 const char* Generate();
32
34 static bool IsValid(const char *uid);
35
36private:
37 std::string Unique; // Buffer
38};
39
40} // end namespace gdcm
41
42#endif //GDCMUUIDGENERATOR_H
gdcm::UUIDGenerator
Class for generating unique UUID.
Definition gdcmUUIDGenerator.h:27
gdcm::UUIDGenerator::IsValid
static bool IsValid(const char *uid)
Find out if the string is a valid UUID or not.
gdcm::UUIDGenerator::Generate
const char * Generate()
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21