X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirPatient.cxx;h=625adecb4a40c80cd5865951f492da12852d7cd3;hb=0a8894522fde1e35128022e0df3f0366677be59e;hp=85fa49b5d28176ea8db1009b904584d8cc5921f2;hpb=49c0af19f5bf0f2402d37d8abf7fb139e7453245;p=gdcm.git diff --git a/src/gdcmDicomDirPatient.cxx b/src/gdcmDicomDirPatient.cxx index 85fa49b5..625adecb 100644 --- a/src/gdcmDicomDirPatient.cxx +++ b/src/gdcmDicomDirPatient.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirPatient.cxx,v $ Language: C++ - Date: $Date: 2004/08/01 00:59:21 $ - Version: $Revision: 1.9 $ + Date: $Date: 2004/08/26 15:29:52 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,7 +23,6 @@ //----------------------------------------------------------------------------- // Constructor / Destructor /** - * \ingroup gdcmDicomDirPatient * \brief Constructor * @param s SQ Item holding the elements related to this "PATIENT" part * @param ptagHT pointer to the HTable (gdcmObject needs it @@ -35,7 +34,6 @@ gdcmDicomDirPatient::gdcmDicomDirPatient(gdcmSQItem *s, TagDocEntryHT *ptagHT): docEntries = s->GetDocEntries(); } /** - * \ingroup gdcmDicomDirPatient * \brief Constructor * @param ptagHT pointer to the HTable (gdcmObject needs it * to build the gdcmHeaderEntries) @@ -45,12 +43,12 @@ gdcmDicomDirPatient::gdcmDicomDirPatient(TagDocEntryHT *ptagHT): { } /** - * \ingroup gdcmDicomDirPatient * \brief Canonical destructor. */ gdcmDicomDirPatient::~gdcmDicomDirPatient() { - for(ListDicomDirStudy::iterator cc = studies.begin();cc != studies.end();++cc) + for(ListDicomDirStudy::iterator cc = studies.begin(); + cc != studies.end(); ++cc) { delete *cc; } @@ -59,7 +57,6 @@ gdcmDicomDirPatient::~gdcmDicomDirPatient() //----------------------------------------------------------------------------- // Print /** - * \ingroup gdcmDicomDirPatient * \brief Prints the Object * @return */ @@ -76,11 +73,23 @@ void gdcmDicomDirPatient::Print(std::ostream &os) } } +/** + * \brief Writes the Object + * @return + */ +void gdcmDicomDirPatient::Write(FILE *fp, FileType t) +{ + gdcmObject::Write(fp, t); + + for(ListDicomDirStudy::iterator cc = studies.begin();cc!=studies.end();++cc) + { + (*cc)->Write( fp, t ); + } +} //----------------------------------------------------------------------------- // Public /** - * \ingroup gdcmDicomDir * \brief adds a new Patient at the begining of the PatientList * of a partially created DICOMDIR */