X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRLEFramesInfo.cxx;h=0286031e671ef22c33a7a1c16cb7aad5c6bb5303;hb=5bf7c51796867388334836847a6874640bc83f89;hp=0c3d1ba397a97bb32e5cd0d41b34d0c84098353c;hpb=64f79e8efbfae49231d1f469aa4fcc4acf0da70c;p=gdcm.git diff --git a/src/gdcmRLEFramesInfo.cxx b/src/gdcmRLEFramesInfo.cxx index 0c3d1ba3..0286031e 100644 --- a/src/gdcmRLEFramesInfo.cxx +++ b/src/gdcmRLEFramesInfo.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmRLEFramesInfo.cxx,v $ Language: C++ - Date: $Date: 2004/10/06 09:58:08 $ - Version: $Revision: 1.1 $ + Date: $Date: 2004/10/20 14:30:40 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -18,7 +18,10 @@ #include "gdcmRLEFramesInfo.h" -gdcmRLEFramesInfo::~gdcmRLEFramesInfo() +namespace gdcm +{ + +RLEFramesInfo::~RLEFramesInfo() { for(RLEFrameList::iterator it = Frames.begin(); it != Frames.end(); ++it) { @@ -26,3 +29,28 @@ gdcmRLEFramesInfo::~gdcmRLEFramesInfo() } Frames.clear(); } + +/** + * \brief Print self. + * @param indent Indentation string to be prepended during printing. + * @param os Stream to print to. + */ +void RLEFramesInfo::Print( std::string indent, std::ostream &os ) +{ + os << indent + << "----------------- RLE frames --------------------------------" + << std::endl; + os << indent + << "Total number of Frames : " << Frames.size() + << std::endl; + int frameNumber = 0; + for(RLEFrameList::iterator it = Frames.begin(); it != Frames.end(); ++it) + { + os << indent + << " frame number :" << frameNumber++ + << std::endl; + (*it)->Print( indent + " ", os ); + } +} + +} // end namespace gdcm