]> Creatis software - gdcm.git/blob - src/gdcmDicomDirElement.h
* FIX : Set the elements to create the DicomDir in a dictionary file
[gdcm.git] / src / gdcmDicomDirElement.h
1 // gdcmDicomDirElement.h
2 //-----------------------------------------------------------------------------
3 #ifndef GDCMDICOMDIRELEMENT_H
4 #define GDCMDICOMDIRELEMENT_H
5
6 #include "gdcmCommon.h"
7
8 #include <list>
9
10 //-----------------------------------------------------------------------------
11 typedef struct
12 {
13         unsigned short int group;
14         unsigned short int elem;
15         std::string value;
16 } gdcmElement;
17
18 typedef std::list<gdcmElement> ListMetaElem;
19 typedef std::list<gdcmElement> ListPatientElem;
20 typedef std::list<gdcmElement> ListStudyElem;
21 typedef std::list<gdcmElement> ListSerieElem;
22 typedef std::list<gdcmElement> ListImageElem;
23
24 //-----------------------------------------------------------------------------
25 /*
26  * \defgroup gdcmDicomDirElement
27  * \brief    gdcmDicomDirElement represents elements contained in a dicom dir
28  *
29  */
30 class GDCM_EXPORT gdcmDicomDirElement
31 {
32 public:
33    gdcmDicomDirElement(void);
34    ~gdcmDicomDirElement(void);
35
36    void Print(std::ostream &os);
37
38    ListMetaElem    &GetMetaElements(void)    {return(MetaList);};
39    ListPatientElem &GetPatientElements(void) {return(PatientList);};
40    ListStudyElem   &GetStudyElements(void)   {return(StudyList);};
41    ListSerieElem   &GetSerieElements(void)   {return(SerieList);};
42    ListImageElem   &GetImageElements(void)   {return(ImageList);};
43
44 private:
45    ListMetaElem    MetaList;
46    ListPatientElem PatientList;
47    ListStudyElem   StudyList;
48    ListSerieElem   SerieList;
49    ListImageElem   ImageList;
50 };
51
52 //-----------------------------------------------------------------------------
53 #endif