X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirMeta.cxx;h=ec3d35b4d4ca69c3dcc1af5f9c7d371f2f8bd535;hb=e51bf0565bbe4c0e269dd941cb4071ebde6012e4;hp=516150de0cd29c7635ccbe431ebab977b28d5312;hpb=ad8f0eb6ea1ad66c443b3640cded8a355efa7b42;p=gdcm.git diff --git a/src/gdcmDicomDirMeta.cxx b/src/gdcmDicomDirMeta.cxx index 516150de..ec3d35b4 100644 --- a/src/gdcmDicomDirMeta.cxx +++ b/src/gdcmDicomDirMeta.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirMeta.cxx,v $ Language: C++ - Date: $Date: 2005/01/20 16:16:42 $ - Version: $Revision: 1.24 $ + Date: $Date: 2005/02/01 10:29:55 $ + Version: $Revision: 1.27 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,10 +23,8 @@ namespace gdcm { - //----------------------------------------------------------------------------- // Constructor / Destructor - /** * \brief Constructor */ @@ -48,45 +46,21 @@ DicomDirMeta::~DicomDirMeta() { } -//----------------------------------------------------------------------------- -// Print -/** - * \brief Prints the Meta Elements - * @param os ostream to write to - * @param indent indent - */ -void DicomDirMeta::Print(std::ostream &os, std::string const & ) -{ - os << "META" << std::endl; - // warning : META doesn't behave exactly like a Objet - for (ListDocEntry::iterator i = DocEntries.begin(); - i != DocEntries.end(); - ++i) - { - (*i)->SetPrintLevel(PrintLevel); - (*i)->Print(); - os << std::endl; - } -} - - //----------------------------------------------------------------------------- // Public - - /** * \brief Writes the Meta Elements * @param fp ofstream to write to - * @param t File Type + * @param filetype type of the file (ACR, ImplicitVR, ExplicitVR, ...) * @return */ -void DicomDirMeta::WriteContent(std::ofstream *fp, FileType t) +void DicomDirMeta::WriteContent(std::ofstream *fp, FileType filetype) { for (ListDocEntry::iterator i = DocEntries.begin(); i != DocEntries.end(); ++i) { - (*i)->WriteContent(fp, t); + (*i)->WriteContent(fp, filetype); } } @@ -96,5 +70,26 @@ void DicomDirMeta::WriteContent(std::ofstream *fp, FileType t) //----------------------------------------------------------------------------- // Private +//----------------------------------------------------------------------------- +// Print +/** + * \brief Prints the Meta Elements + * @param os ostream to write to + * @param indent Indentation string to be prepended during printing + */ +void DicomDirMeta::Print(std::ostream &os, std::string const & ) +{ + os << "META" << std::endl; + // warning : META doesn't behave exactly like a Objet + for (ListDocEntry::iterator i = DocEntries.begin(); + i != DocEntries.end(); + ++i) + { + (*i)->SetPrintLevel(PrintLevel); + (*i)->Print(); + os << std::endl; + } +} + //----------------------------------------------------------------------------- } // end namespace gdcm