X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirMeta.cxx;h=354fd1ed85600c6fc4dbccd30c5306680b5afd87;hb=713d0f3d28a6176fab6d57e031633061dc7354a7;hp=c19de1aae43e5f39b91d9488f401d9388785077c;hpb=2410af81c71712957890eb38d9ecacc77adcd72e;p=gdcm.git diff --git a/src/gdcmDicomDirMeta.cxx b/src/gdcmDicomDirMeta.cxx index c19de1aa..354fd1ed 100644 --- a/src/gdcmDicomDirMeta.cxx +++ b/src/gdcmDicomDirMeta.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirMeta.cxx,v $ Language: C++ - Date: $Date: 2007/03/23 15:30:15 $ - Version: $Revision: 1.36 $ + Date: $Date: 2007/10/08 15:20:17 $ + Version: $Revision: 1.40 $ 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,7 @@ #include "gdcmUtil.h" #include "gdcmDataEntry.h" -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- // Constructor / Destructor @@ -53,10 +53,11 @@ DicomDirMeta::~DicomDirMeta() /** * \brief Writes the Meta Elements * @param fp ofstream to write to - * @param filetype type of the file (ImplicitVR, ExplicitVR, ...) + * @param filetype type of the file (ImplicitVR, ExplicitVR, JPEG, JPEG2000 ...) * @return */ -void DicomDirMeta::WriteContent(std::ofstream *fp, FileType filetype) +void DicomDirMeta::WriteContent(std::ofstream *fp, FileType filetype, + bool , bool ) { // 'File Meta Information Version' @@ -84,7 +85,8 @@ void DicomDirMeta::WriteContent(std::ofstream *fp, FileType filetype) i!= DocEntries.end(); ++i) { - (*i)->WriteContent(fp, filetype); + // true : we are in MetaElements + (*i)->WriteContent(fp, filetype, true, false); } }