00001 // gdcmPatient.cxx 00002 //----------------------------------------------------------------------------- 00003 #include "gdcmPatient.h" 00004 00005 //----------------------------------------------------------------------------- 00006 // Constructor / Destructor 00013 gdcmPatient::gdcmPatient(ListTag::iterator begin,ListTag::iterator end): 00014 gdcmObject(begin,end) 00015 { 00016 } 00017 00022 gdcmPatient::~gdcmPatient() 00023 { 00024 for(ListStudy::iterator cc = studies.begin();cc != studies.end();++cc) 00025 { 00026 delete *cc; 00027 } 00028 } 00029 00030 //----------------------------------------------------------------------------- 00031 // Print 00037 void gdcmPatient::Print(std::ostream &os) 00038 { 00039 os<<"PATIENT"<<std::endl; 00040 gdcmObject::Print(os); 00041 00042 for(ListStudy::iterator cc = studies.begin();cc!=studies.end();++cc) 00043 { 00044 (*cc)->SetPrintLevel(printLevel); 00045 (*cc)->Print(os); 00046 } 00047 } 00048 00049 //----------------------------------------------------------------------------- 00050 // Public 00051 00052 //----------------------------------------------------------------------------- 00053 // Protected 00054 00055 //----------------------------------------------------------------------------- 00056 // Private 00057 00058 //-----------------------------------------------------------------------------