GDCM: gdcmDefs.h Source File

GDCM 3.0.25

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
23namespace gdcm
24{
25class DataSet;
26class File;
27class MediaStorage;
32 class GDCM_EXPORT Defs
33{
34public:
35 Defs();
36 ~Defs();
37 Defs &operator=(const Defs &val) = delete;
38 Defs(const Defs &val) = delete;
39
40 const Modules &GetModules() const { return Part3Modules; }
41 Modules &GetModules() { return Part3Modules; }
42
45 const Macros &GetMacros() const { return Part3Macros; }
46 Macros &GetMacros() { return Part3Macros; }
47
48 const IODs & GetIODs() const { return Part3IODs; }
49 IODs & GetIODs() { return Part3IODs; }
50
51 bool IsEmpty() const { return GetModules().IsEmpty(); }
52
53 bool Verify(const File& file) const;
54
55 // \deprecated DO NOT USE
56 bool Verify(const DataSet& ds) const;
57
58 Type GetTypeFromTag(const File& file, const Tag& tag) const;
59
60 static const char *GetIODNameFromMediaStorage(MediaStorage const &ms);
61
62 const IOD& GetIODFromFile(const File& file) const;
63
64protected:
65 friend class Global;
66 void LoadDefaults();
67 void LoadFromFile(const char *filename);
68
69private:
70 // Part 3 stuff:
71 Macros Part3Macros;
72 Modules Part3Modules;
73 IODs Part3IODs;
74
75};
76
77
78} // end namespace gdcm
79
80#endif //GDCMDEFS_H
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements)
Definition gdcmDataSet.h:56
gdcm::Defs::LoadFromFile
void LoadFromFile(const char *filename)
gdcm::Defs::Defs
Defs(const Defs &val)=delete
gdcm::Defs::Defs
Defs()
gdcm::Defs::GetIODs
const IODs & GetIODs() const
Definition gdcmDefs.h:48
gdcm::Defs::GetModules
Modules & GetModules()
Definition gdcmDefs.h:41
gdcm::Defs::Verify
bool Verify(const File &file) const
gdcm::Defs::GetIODFromFile
const IOD & GetIODFromFile(const File &file) const
gdcm::Defs::LoadDefaults
void LoadDefaults()
gdcm::Defs::~Defs
~Defs()
gdcm::Defs::GetTypeFromTag
Type GetTypeFromTag(const File &file, const Tag &tag) const
gdcm::Defs::Global
friend class Global
Definition gdcmDefs.h:65
gdcm::Defs::GetMacros
const Macros & GetMacros() const
Definition gdcmDefs.h:45
gdcm::Defs::IsEmpty
bool IsEmpty() const
Definition gdcmDefs.h:51
gdcm::Defs::GetIODs
IODs & GetIODs()
Definition gdcmDefs.h:49
gdcm::Defs::GetIODNameFromMediaStorage
static const char * GetIODNameFromMediaStorage(MediaStorage const &ms)
gdcm::Defs::operator=
Defs & operator=(const Defs &val)=delete
gdcm::Defs::Verify
bool Verify(const DataSet &ds) const
gdcm::Defs::GetMacros
Macros & GetMacros()
Definition gdcmDefs.h:46
gdcm::Defs::GetModules
const Modules & GetModules() const
Definition gdcmDefs.h:40
gdcm::File
a DICOM File
Definition gdcmFile.h:34
gdcm::IOD
Class for representing a IOD.
Definition gdcmIOD.h:35
gdcm::IODs
Class for representing a IODs.
Definition gdcmIODs.h:30
gdcm::Macros
Class for representing a Modules.
Definition gdcmMacros.h:30
gdcm::MediaStorage
MediaStorage.
Definition gdcmMediaStorage.h:44
gdcm::Modules
Class for representing a Modules.
Definition gdcmModules.h:30
gdcm::Tag
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
gdcm::Type
Type.
Definition gdcmType.h:42
gdcmIODs.h
gdcmMacros.h
gdcmModules.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21