X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSeqEntry.cxx;h=8ece4978a456d8d7a8526cee5e8b061a7d65e5de;hb=edfc14dd195f9759cf02da0959d96d1499d572be;hp=76d57104390038b2aeaa75b021b5056aece136f7;hpb=e7748d4ccb70cdc7bdbf5559ba9a485e6f5c80d8;p=gdcm.git diff --git a/src/gdcmSeqEntry.cxx b/src/gdcmSeqEntry.cxx index 76d57104..8ece4978 100644 --- a/src/gdcmSeqEntry.cxx +++ b/src/gdcmSeqEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSeqEntry.cxx,v $ Language: C++ - Date: $Date: 2004/11/15 02:18:37 $ - Version: $Revision: 1.35 $ + Date: $Date: 2004/11/25 15:46:11 $ + 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 @@ -60,6 +60,7 @@ SeqEntry::SeqEntry( DocEntry* e, int depth ) ImplicitVR = e->IsImplicitVR(); Offset = e->GetOffset(); + SeqTerm = NULL; } /** @@ -84,6 +85,8 @@ void SeqEntry::Print( std::ostream &os ) { // First, Print the Dicom Element itself. SetPrintLevel(2); + + os << "S "; DocEntry::Print(os); os << std::endl; @@ -119,7 +122,7 @@ void SeqEntry::Print( std::ostream &os ) /* * \brief canonical Writer */ -void SeqEntry::Write(std::ofstream* fp, FileType filetype) +void SeqEntry::WriteContent(std::ofstream* fp, FileType filetype) { uint16_t seq_term_gr = 0xfffe; uint16_t seq_term_el = 0xe0dd; @@ -128,12 +131,12 @@ void SeqEntry::Write(std::ofstream* fp, FileType filetype) //uint16_t item_term_gr = 0xfffe; //uint16_t item_term_el = 0xe00d; - DocEntry::Write(fp, filetype); + DocEntry::WriteContent(fp, filetype); for(ListSQItem::iterator cc = Items.begin(); cc != Items.end(); ++cc) { - (*cc)->Write(fp, filetype); + (*cc)->WriteContent(fp, filetype); } // we force the writting of a Sequence Delimitation item