X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSeqEntry.cxx;h=4957fe9447d39ea42bdfbae87c849401c14f52cb;hb=55515b05da6434fd0c5ae71daa9eb785519a8fac;hp=def82df69a2da92c627515c74cdb4ec3c3fe1503;hpb=9b4f60821e8dff56a3439e820681972eb78f8295;p=gdcm.git diff --git a/src/gdcmSeqEntry.cxx b/src/gdcmSeqEntry.cxx index def82df6..4957fe94 100644 --- a/src/gdcmSeqEntry.cxx +++ b/src/gdcmSeqEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSeqEntry.cxx,v $ Language: C++ - Date: $Date: 2006/04/13 08:05:52 $ - Version: $Revision: 1.67 $ + Date: $Date: 2007/08/29 15:30:50 $ + Version: $Revision: 1.70 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -27,7 +27,7 @@ #include #include -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- // Constructor / Destructor @@ -80,7 +80,7 @@ SeqEntry::~SeqEntry() * @param fp pointer to an already open file * @param filetype type of the file (ACR, ImplicitVR, ExplicitVR, ...) */ -void SeqEntry::WriteContent(std::ofstream *fp, FileType filetype) +void SeqEntry::WriteContent(std::ofstream *fp, FileType filetype, bool dummy, bool dummy2) { uint16_t seq_term_gr = 0xfffe; uint16_t seq_term_el = 0xe0dd; @@ -89,13 +89,14 @@ void SeqEntry::WriteContent(std::ofstream *fp, FileType filetype) // ignore 'Zero length' Sequences if ( GetReadLength() == 0 ) return; - - DocEntry::WriteContent(fp, filetype); + // false : we are not in MetaElements + // true : we are inside a Sequence + DocEntry::WriteContent(fp, filetype, false, true); for(ListSQItem::iterator cc = Items.begin(); cc != Items.end(); ++cc) - { - (*cc)->WriteContent(fp, filetype); + { + (*cc)->WriteContent(fp, filetype, false, true); } // we force the writting of a Sequence Delimitation item