GDCM
2.2.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Source
InformationObjectDefinition
gdcmDefs.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 GDCMDEFS_H
15
#define GDCMDEFS_H
16
17
#include "
gdcmModules.h
"
18
#include "
gdcmMacros.h
"
19
#include "
gdcmIODs.h
"
20
21
#include <string>
22
23
namespace
gdcm
24
{
25
class
DataSet;
26
class
File;
27
class
MediaStorage;
32
class
GDCM_EXPORT
Defs
33
{
34
public
:
35
Defs
();
36
~
Defs
();
37
38
const
Modules
&
GetModules
()
const
{
return
Part3Modules; }
39
Modules
&
GetModules
() {
return
Part3Modules; }
40
43
const
Macros
&
GetMacros
()
const
{
return
Part3Macros; }
44
Macros
&
GetMacros
() {
return
Part3Macros; }
45
46
const
IODs
&
GetIODs
()
const
{
return
Part3IODs; }
47
IODs
&
GetIODs
() {
return
Part3IODs; }
48
49
bool
IsEmpty
()
const
{
return
GetModules().IsEmpty(); }
50
51
bool
Verify(
const
File
& file)
const
;
52
53
// \deprecated DO NOT USE
54
bool
Verify(
const
DataSet
& ds)
const
;
55
56
Type
GetTypeFromTag(
const
File
& file,
const
Tag
& tag)
const
;
57
58
static
const
char
*GetIODNameFromMediaStorage(
MediaStorage
const
&ms);
59
60
const
IOD
& GetIODFromFile(
const
File
& file)
const
;
61
62
protected
:
63
friend
class
Global
;
64
void
LoadDefaults();
65
void
LoadFromFile(
const
char
*filename);
66
67
private
:
68
// Part 3 stuff:
69
Macros
Part3Macros;
70
Modules
Part3Modules;
71
IODs
Part3IODs;
72
73
Defs
&operator=(
const
Defs
&val);
// purposely not implemented
74
Defs
(
const
Defs
&val);
// purposely not implemented
75
};
76
77
78
}
// end namespace gdcm
79
80
#endif //GDCMDEFS_H
Generated on Wed Jun 13 2012 20:40:37 for GDCM by
1.8.1