]> Creatis software - gdcm.git/blobdiff - src/gdcmStudy.cxx
gdcmParser::CheckSwap() now defaults the filetype to ACR when 'dirty Acr' is
[gdcm.git] / src / gdcmStudy.cxx
index bcfb0e34ca8151ab56ba0ff8fd0311786fb36bb6..29af9518b1007a961dbb06cb1d123e55a17dd5f3 100644 (file)
@@ -2,23 +2,42 @@
 //-----------------------------------------------------------------------------
 #include "gdcmStudy.h"
 
-gdcmStudy::gdcmStudy() {
-
+//-----------------------------------------------------------------------------
+// Constructor / Destructor
+gdcmStudy::gdcmStudy(ListTag::iterator begin,ListTag::iterator end):
+   gdcmObject(begin,end)
+{
 }
 
-
-gdcmStudy::~gdcmStudy() {
-
+gdcmStudy::~gdcmStudy() 
+{
+   for(ListSerie::iterator cc = series.begin();cc != series.end();++cc)
+   {
+      delete *cc;
+   }
 }
 
-
-
-std::string gdcmStudy::GetEntryByNumber(guint16 group, guint16 element) {
-    return "";
+//-----------------------------------------------------------------------------
+// Print
+void gdcmStudy::Print(std::ostream &os)
+{
+   os<<"STUDY"<<std::endl;
+   gdcmObject::Print(os);
+
+   for(ListSerie::iterator cc = series.begin();cc != series.end();++cc)
+   {
+      (*cc)->SetPrintLevel(printLevel);
+      (*cc)->Print(os);
+   }
 }
 
+//-----------------------------------------------------------------------------
+// Public
 
-std::string gdcmStudy::GetEntryByName(TagName name) {
-    return "";
-}
+//-----------------------------------------------------------------------------
+// Protected
 
+//-----------------------------------------------------------------------------
+// Private
+
+//-----------------------------------------------------------------------------