]> Creatis software - gdcm.git/blobdiff - src/gdcmDicomDirStudy.h
ENH: update jpeg lib with ls patch and 2 bugfix patch
[gdcm.git] / src / gdcmDicomDirStudy.h
index 4c69b7b0a7670934fca90b526bb2bced3a0fe9c8..91e798c244fae2ad1f887eff4f6bc8da26ece997 100644 (file)
@@ -1,28 +1,67 @@
-// gdcmDicomDirStudy.h
-//-----------------------------------------------------------------------------
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: gdcmDicomDirStudy.h,v $
+  Language:  C++
+  Date:      $Date: 2004/10/12 04:35:45 $
+  Version:   $Revision: 1.10 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
+
 #ifndef GDCMDICOMDIRSTUDY_H
 #define GDCMDICOMDIRSTUDY_H
 
-#include "gdcmObject.h"
+#include "gdcmDicomDirObject.h"
 #include "gdcmDicomDirSerie.h"
+namespace gdcm 
+{
 
 //-----------------------------------------------------------------------------
-typedef std::list<gdcmDicomDirSerie *> ListDicomDirSerie;
+typedef std::list<DicomDirSerie *> ListDicomDirSerie;
 
 //-----------------------------------------------------------------------------
-class GDCM_EXPORT gdcmDicomDirStudy : public gdcmObject {
+class GDCM_EXPORT DicomDirStudy : public DicomDirObject
+{
 public:
-   gdcmDicomDirStudy(ListTag::iterator begin,ListTag::iterator end);
-   ~gdcmDicomDirStudy(void);
+   DicomDirStudy(SQItem *s, TagDocEntryHT *ptagHT); 
+   DicomDirStudy(TagDocEntryHT *ptagHT); 
 
-   virtual void Print(std::ostream &os = std::cout);
+   ~DicomDirStudy();
 
-   inline ListDicomDirSerie &GetDicomDirSeries() {return series;};
-   inline void AddDicomDirSerie(gdcmDicomDirSerie *obj) {series.push_back(obj);};
+   virtual void Print(std::ostream &os = std::cout);
+   virtual void Write(FILE *fp, FileType t);
+/**
+ * \ingroup DicomDirStudy
+ * \brief   returns the SERIE chained List for this STUDY.
+ */
+   ListDicomDirSerie &GetDicomDirSeries() { return series; };
+/**
+ * \ingroup DicomDirStudy
+ * \brief   adds the passed SERIE to the SERIE chained List for this STUDY.
+ */ 
+   void AddDicomDirSerie(DicomDirSerie *obj) { series.push_back(obj); };
 
+/**
+ * \ingroup DicomDirStudy
+ * \brief   TODO
+ */ 
+   DicomDirSerie* NewSerie();
+    
 private:
+/**
+* \brief chained list of DicomDirSeries (to be exploited recursively)
+*/ 
    ListDicomDirSerie series;
 };
+} // end namespace gdcm
 
 //-----------------------------------------------------------------------------
 #endif