]> Creatis software - gdcm.git/blob - src/gdcmDicomDir.h
1426b6317bdb915469b32e4652275dfc4f0be409
[gdcm.git] / src / gdcmDicomDir.h
1 // gdcmDICOMDIR.h
2 //-----------------------------------------------------------------------------
3 #ifndef GDCMDICOMDIR_H
4 #define GDCMDICOMDIR_H
5
6 #include "gdcmHeader.h"
7 #include "gdcmCommon.h"
8 #include "gdcmPatient.h"
9
10 //-----------------------------------------------------------------------------
11
12 typedef std::list<gdcmPatient *> lPatient;
13
14 //-----------------------------------------------------------------------------
15 /*
16  * \defgroup gdcmDicomDir
17  * \brief    gdcmDicomDir defines an object representing a DICOMDIR in memory.
18  *
19  */
20 class GDCM_EXPORT gdcmDicomDir: public gdcmParser {
21 public:
22
23    gdcmDicomDir(std::string &FileName,bool exception_on_error = false );
24    ~gdcmDicomDir();
25
26    inline lPatient &GetPatients() {return patients;};
27    inline void AddPatient(gdcmPatient *patient) {patients.push_back(patient);};
28    
29 private:
30    lPatient patients;
31
32 };
33
34 //-----------------------------------------------------------------------------
35 #endif