2 //-----------------------------------------------------------------------------
6 #include "gdcmHeader.h"
7 #include "gdcmCommon.h"
8 #include "gdcmPatient.h"
10 //-----------------------------------------------------------------------------
11 typedef std::list<gdcmPatient *> ListPatient;
13 //-----------------------------------------------------------------------------
15 * \defgroup gdcmDicomDir
16 * \brief gdcmDicomDir defines an object representing a DICOMDIR in memory.
19 class GDCM_EXPORT gdcmDicomDir: public gdcmParser
22 gdcmDicomDir(std::string &FileName,bool exception_on_error = false );
25 void SetPrintLevel(int level) { printLevel = level; };
26 virtual void Print(std::ostream &os = std::cout);
28 inline ListPatient &GetPatients() {return patients;};
40 void CreateDicomDir(void);
41 void AddObjectToEnd(gdcmDicomDirType type,ListTag::iterator begin,ListTag::iterator end);
42 void AddPatientToEnd(ListTag::iterator begin,ListTag::iterator end);
43 void AddStudyToEnd(ListTag::iterator begin,ListTag::iterator end);
44 void AddSerieToEnd(ListTag::iterator begin,ListTag::iterator end);
45 void AddImageToEnd(ListTag::iterator begin,ListTag::iterator end);
50 //-----------------------------------------------------------------------------