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(ListTag *l, bool exception_on_error = false);
23 gdcmDicomDir(std::string &FileName,bool exception_on_error = false);
27 void SetPrintLevel(int level) { printLevel = level; };
28 virtual void Print(std::ostream &os = std::cout);
30 inline ListPatient &GetPatients() {return patients;};
31 bool Write(std::string fileName);
44 void CreateDicomDir(void);
45 void AddObjectToEnd(gdcmDicomDirType type,ListTag::iterator begin,ListTag::iterator end);
46 void AddPatientToEnd(ListTag::iterator begin,ListTag::iterator end);
47 void AddStudyToEnd(ListTag::iterator begin,ListTag::iterator end);
48 void AddSerieToEnd(ListTag::iterator begin,ListTag::iterator end);
49 void AddImageToEnd(ListTag::iterator begin,ListTag::iterator end);
54 //-----------------------------------------------------------------------------