1 /*=========================================================================
4 Module: $RCSfile: gdcmDicomDirElement.h,v $
6 Date: $Date: 2005/09/02 07:10:03 $
7 Version: $Revision: 1.31 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
19 #ifndef GDCMDICOMDIRELEMENT_H
20 #define GDCMDICOMDIRELEMENT_H
22 #include "gdcmCommon.h"
29 //-----------------------------------------------------------------------------
31 typedef std::list<Element> ListDicomDirElem;
32 typedef std::list<Element> ListDicomDirMetaElem;
33 typedef std::list<Element> ListDicomDirPatientElem;
34 typedef std::list<Element> ListDicomDirStudyElem;
35 typedef std::list<Element> ListDicomDirVisitElem;
36 typedef std::list<Element> ListDicomDirSerieElem;
37 typedef std::list<Element> ListDicomDirImageElem;
39 // For future use (Full DICOMDIR)
42 typedef std::list<Element> ListDicomDirResultElem;
43 typedef std::list<Element> ListDicomDirStudyComponentElem;
45 typedef std::list<Element> ListDicomDirOverlayElem;
46 typedef std::list<Element> ListDicomDirModalityLutElem;
47 typedef std::list<Element> ListDicomDirModalityLutElem;
48 typedef std::list<Element> ListDicomDirCurveElem;
49 typedef std::list<Element> ListDicomDirStoredPrintElem;
50 typedef std::list<Element> ListDicomDirRtDoseElem;
51 typedef std::list<Element> ListDicomDirRtStructureSetElem;
52 typedef std::list<Element> ListDicomDirRtPlanElem;
53 typedef std::list<Element> ListDicomDirRtTreatRecordElem;
54 typedef std::list<Element> ListDicomDirPresentationElem;
55 typedef std::list<Element> ListDicomDirSrDocumentElem;
56 typedef std::list<Element> ListDicomDirKeyObjectDocElem;
57 typedef std::list<Element> ListDicomDirSpectroscopyElem;
58 typedef std::list<Element> ListDicomDirRawDataElem;
59 typedef std::list<Element> ListDicomDirRegistrationElem;
60 typedef std::list<Element> ListDicomDirFiducialElem;
63 //-----------------------------------------------------------------------------
65 * \brief Represents elements contained in a DicomDir class
66 * for the chained lists from the file 'Dicts/DicomDir.dic'
68 class GDCM_EXPORT DicomDirElement
75 * \brief canonical Printer
77 void Print(std::ostream &os);
80 * \brief returns a reference to the chained List
81 * related to the META Elements of a DICOMDIR.
83 ListDicomDirMetaElem const &GetDicomDirMetaElements() const
84 { return DicomDirMetaList; }
87 * \brief returns a reference to the chained List
88 * related to the PATIENT Elements of a DICOMDIR.
90 ListDicomDirPatientElem const &GetDicomDirPatientElements() const
91 { return DicomDirPatientList; }
94 * \brief returns a reference to the chained List
95 * related to the STUDY Elements of a DICOMDIR.
97 ListDicomDirStudyElem const &GetDicomDirStudyElements() const
98 { return DicomDirStudyList; }
101 * \brief returns a reference to the chained List
102 * related to the VISIT Elements of a DICOMDIR.
104 ListDicomDirVisitElem const &GetDicomDirVisitElements() const
105 { return DicomDirVisitList; }
107 * \brief returns a reference to the chained List
108 * related to the SERIE Elements of a DICOMDIR.
110 ListDicomDirSerieElem const &GetDicomDirSerieElements() const
111 { return DicomDirSerieList; }
114 * \brief returns a reference to the chained List
115 * related to the IMAGE Elements of a DICOMDIR.
117 ListDicomDirImageElem const &GetDicomDirImageElements() const
118 { return DicomDirImageList; }
120 // Public method to add an element
121 bool AddEntry(DicomDirType type, Element const &elem);
123 // Only one instance of ddElem
124 void AddDicomDirElement(DicomDirType type,
125 uint16_t group, uint16_t elem);
128 /// Elements chained list, related to the MetaElements of DICOMDIR
129 ListDicomDirMetaElem DicomDirMetaList;
130 /// Elements chained list, related to the PatientElements of DICOMDIR
131 ListDicomDirPatientElem DicomDirPatientList;
132 /// Elements chained list, related to the StudyElements of DICOMDIR
133 ListDicomDirStudyElem DicomDirStudyList;
134 /// Elements chained list, related to the VisitElements of DICOMDIR
135 ListDicomDirVisitElem DicomDirVisitList;
136 /// Elements chained list, related to the SerieElements of DICOMDIR
137 ListDicomDirSerieElem DicomDirSerieList;
138 /// Elements chained list, related to the ImageElements of DICOMDIR
139 ListDicomDirImageElem DicomDirImageList;
141 } // end namespace gdcm
142 //-----------------------------------------------------------------------------