X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSeqEntry.cxx;h=4323f941cdc8212189debeb83d2fd7c17575f786;hb=c460dc75a10d96fc38011db90fae5bcd8649b743;hp=d31c2b10b38e93632fb8ae9f0a75043113bcd2e4;hpb=44a9814938a6824d3a66b932429084517da6dadf;p=gdcm.git diff --git a/src/gdcmSeqEntry.cxx b/src/gdcmSeqEntry.cxx index d31c2b10..4323f941 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/09/13 12:10:53 $ - Version: $Revision: 1.27 $ + Date: $Date: 2004/09/16 19:21:57 $ + Version: $Revision: 1.28 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -30,12 +30,12 @@ * \ingroup gdcmSeqEntry * \brief Constructor from a given gdcmSeqEntry */ -gdcmSeqEntry::gdcmSeqEntry(gdcmDictEntry* e, int depth) +gdcmSeqEntry::gdcmSeqEntry( gdcmDictEntry* e ) : gdcmDocEntry(e) { UsableLength = 0; ReadLength = 0xffffffff; - SQDepthLevel = depth; + SQDepthLevel = -1; delimitor_mode = false; seq_term = NULL; @@ -72,7 +72,7 @@ gdcmSeqEntry::~gdcmSeqEntry() { /** * \brief canonical Printer */ -void gdcmSeqEntry::Print(std::ostream &os) +void gdcmSeqEntry::Print( std::ostream &os ) { // First, Print the Dicom Element itself. SetPrintLevel(2); @@ -90,15 +90,20 @@ void gdcmSeqEntry::Print(std::ostream &os) // at end, print the sequence terminator item, if any if (delimitor_mode) { - for (int i=0;iPrint(os); os << std::endl; } else - // fusible + { + // fuse os << " -------------- should have a sequence terminator item"; + } } }