X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirSerie.cxx;h=db93cc01be4ca3e76a5d2cfc060a843c26543f6a;hb=9aa702d6397e3e490263a0791dd6c8ed2f3d1e83;hp=7dfcfdfddcc44d3638054109c8ddc6fe41183721;hpb=d6f3715fc5f0acf5deeefd288703e24790d069cd;p=gdcm.git diff --git a/src/gdcmDicomDirSerie.cxx b/src/gdcmDicomDirSerie.cxx index 7dfcfdfd..db93cc01 100644 --- a/src/gdcmDicomDirSerie.cxx +++ b/src/gdcmDicomDirSerie.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirSerie.cxx,v $ Language: C++ - Date: $Date: 2005/01/28 17:01:29 $ - Version: $Revision: 1.36 $ + Date: $Date: 2005/06/24 10:55:58 $ + Version: $Revision: 1.38 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -24,7 +24,6 @@ namespace gdcm { - //----------------------------------------------------------------------------- // Constructor / Destructor /** @@ -34,7 +33,7 @@ namespace gdcm DicomDirSerie::DicomDirSerie(bool empty): DicomDirObject() { - if( !empty ) + if ( !empty ) { ListDicomDirSerieElem const &elemList = Global::GetDicomDirElements()->GetDicomDirSerieElements(); @@ -50,27 +49,6 @@ DicomDirSerie::~DicomDirSerie() ClearImage(); } -//----------------------------------------------------------------------------- -// Print -/** - * \brief Prints the Object - * @param os ostream to write to - * @param indent Indentation string to be prepended during printing - */ -void DicomDirSerie::Print(std::ostream &os, std::string const &) -{ - os << "SERIE" << std::endl; - DicomDirObject::Print(os); - - for(ListDicomDirImage::iterator cc = Images.begin(); - cc != Images.end(); - ++cc) - { - (*cc)->SetPrintLevel(PrintLevel); - (*cc)->Print(os); - } -} - //----------------------------------------------------------------------------- // Public /** @@ -149,6 +127,25 @@ DicomDirImage *DicomDirSerie::GetNextImage() // Private //----------------------------------------------------------------------------- -} // end namespace gdcm +// Print +/** + * \brief Prints the Object + * @param os ostream to write to + * @param indent Indentation string to be prepended during printing + */ +void DicomDirSerie::Print(std::ostream &os, std::string const &) +{ + os << "SERIE" << std::endl; + DicomDirObject::Print(os); + for(ListDicomDirImage::iterator cc = Images.begin(); + cc != Images.end(); + ++cc) + { + (*cc)->SetPrintLevel(PrintLevel); + (*cc)->Print(os); + } +} +//----------------------------------------------------------------------------- +} // end namespace gdcm