X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirStudy.cxx;h=0032f182452be2625a59d48d5067a992846f127a;hb=f26ff7a4f6b6cac83f3bf3740beadc5b21946dd8;hp=d1a66ff9f130be4cd616447c5a47428dd6ff7a38;hpb=4b4569ba7d0829cf3782ff6b5bbe5ae1009466e6;p=gdcm.git diff --git a/src/gdcmDicomDirStudy.cxx b/src/gdcmDicomDirStudy.cxx index d1a66ff9..0032f182 100644 --- a/src/gdcmDicomDirStudy.cxx +++ b/src/gdcmDicomDirStudy.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirStudy.cxx,v $ Language: C++ - Date: $Date: 2004/08/01 02:39:09 $ - Version: $Revision: 1.9 $ + Date: $Date: 2004/09/23 10:47:10 $ + 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 @@ -26,22 +26,22 @@ * \ingroup gdcmDicomDirStudy * \brief constructor * @param s SQ Item holding the elements related to this "STUDY" part - * @param ptagHT pointer to the HTable (gdcmObject needs it + * @param ptagHT pointer to the HTable (gdcmDicomDirObject needs it * to build the gdcmHeaderEntries) */ gdcmDicomDirStudy::gdcmDicomDirStudy(gdcmSQItem *s, TagDocEntryHT *ptagHT): - gdcmObject(ptagHT) + gdcmDicomDirObject(ptagHT) { docEntries = s->GetDocEntries(); } /** * \ingroup gdcmDicomDirStudy * \brief constructor - * @param ptagHT pointer to the HTable (gdcmObject needs it + * @param ptagHT pointer to the HTable (gdcmDicomDirObject needs it * to build the gdcmHeaderEntries) */ gdcmDicomDirStudy::gdcmDicomDirStudy(TagDocEntryHT *ptagHT): - gdcmObject(ptagHT) + gdcmDicomDirObject(ptagHT) { } /** @@ -66,7 +66,7 @@ gdcmDicomDirStudy::~gdcmDicomDirStudy() void gdcmDicomDirStudy::Print(std::ostream &os) { os << "STUDY" << std::endl; - gdcmObject::Print(os); + gdcmDicomDirObject::Print(os); for(ListDicomDirSerie::iterator cc = series.begin(); cc != series.end(); @@ -80,6 +80,20 @@ void gdcmDicomDirStudy::Print(std::ostream &os) //----------------------------------------------------------------------------- // Public +/** + * \brief Writes the Object + * @return + */ +void gdcmDicomDirStudy::Write(FILE *fp, FileType t) +{ + gdcmDicomDirObject::Write(fp, t); + + for(ListDicomDirSerie::iterator cc = series.begin();cc!=series.end();++cc) + { + (*cc)->Write( fp, t ); + } +} + /** * \ingroup gdcmDicomStudy * \brief adds a new Serie at the begining of the SerieList