+// gdcmDicomDir(ListTag *l,
+// bool exception_on_error = false);
+ gdcmDicomDir(const char *FileName,
+ bool parseDir = false,
+ bool exception_on_error = false);
+ gdcmDicomDir(bool exception_on_error = false);
+
+ ~gdcmDicomDir(void);
+
+ /**
+ * \ingroup gdcmParser
+ * \brief Sets the print level for the Dicom Header
+ * \note 0 for Light Print; 1 for 'medium' Print, 2 for Heavy
+ */
+ void SetPrintLevel(int level)
+ { printLevel = level; };
+ /**
+ * \ingroup gdcmParser
+ * \brief canonical Printer
+ * \sa SetPrintLevel
+ */
+ virtual void Print(std::ostream &os = std::cout);
+
+// Informations contained in the parser
+ virtual bool IsReadable(void);
+/**
+ * \ingroup gdcmDicomDir
+ * \brief returns a pointer to the gdcmDicomDirMeta for this DICOMDIR.
+ */
+ inline gdcmDicomDirMeta *GetDicomDirMeta()
+ {return metaElems;};
+/**
+ * \ingroup gdcmDicomDir
+ * \brief returns the PATIENT chained List for this DICOMDIR.
+ */
+ inline ListDicomDirPatient &GetDicomDirPatients()
+ {return patients;};
+
+// Parsing
+ void ParseDirectory(void);
+ void CheckBoundaries(void);
+
+ void SetStartMethod(gdcmMethod *,void * =NULL,gdcmMethod * =NULL);
+ void SetStartMethodArgDelete(gdcmMethod *);
+ void SetProgressMethod(gdcmMethod *,void * =NULL,gdcmMethod * =NULL);
+ void SetProgressMethodArgDelete(gdcmMethod *);
+ void SetEndMethod(gdcmMethod *,void * =NULL,gdcmMethod * =NULL);
+ void SetEndMethodArgDelete(gdcmMethod *);
+/**
+ * \ingroup gdcmDicomDir
+ * \brief GetProgress.
+ */
+ inline float GetProgress(void)
+ {return(progress);};
+/**
+ * \ingroup gdcmDicomDir
+ * \brief AbortProgress.
+ */ inline void AbortProgress(void)
+ {abort=true; };
+/**
+ * \ingroup gdcmDicomDir
+ * \brief IsAborted.
+ */ inline bool IsAborted(void)
+ {return(abort); };
+
+// Adding
+ gdcmDicomDirPatient * NewPatient(void);