GDCM  2.4.5
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;
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
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a r...
Definition: gdcmDataSet.h:55
const Macros & GetMacros() const
Definition: gdcmDefs.h:43
Class for representing a IODs.
Definition: gdcmIODs.h:29
Type.
Definition: gdcmType.h:41
const Modules & GetModules() const
Definition: gdcmDefs.h:38
Global.
Definition: gdcmGlobal.h:49
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
FIXME I do not like the name 'Defs'.
Definition: gdcmDefs.h:32
const IODs & GetIODs() const
Definition: gdcmDefs.h:46
bool IsEmpty() const
Definition: gdcmDefs.h:49
IODs & GetIODs()
Definition: gdcmDefs.h:47
Macros & GetMacros()
Definition: gdcmDefs.h:44
a DICOM File See PS 3.10 File: A File is an ordered string of zero or more bytes, where the first byt...
Definition: gdcmFile.h:33
Class for representing a Modules.
Definition: gdcmModules.h:29
Class for representing a IOD.
Definition: gdcmIOD.h:34
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element). Basically an uint32_t which...
Definition: gdcmTag.h:38
Modules & GetModules()
Definition: gdcmDefs.h:39
Definition: gdcmASN1.h:20
Class for representing a Modules.
Definition: gdcmMacros.h:29
MediaStorage.
Definition: gdcmMediaStorage.h:43

Generated on Fri Sep 25 2015 17:58:22 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo