X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSeqEntry.cxx;h=f418ccd26afa3e83d9783cc3180be7a8008d24c1;hb=709489e13fe8c2b2a3f0cff5b5c948fd516bf855;hp=5ee43c7754ac1272155b85ad50b53278fc31a865;hpb=11fc54d61470c43ef09edf0c543906ed1973bf3c;p=gdcm.git diff --git a/src/gdcmSeqEntry.cxx b/src/gdcmSeqEntry.cxx index 5ee43c77..f418ccd2 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/08/26 15:29:53 $ - Version: $Revision: 1.23 $ + Date: $Date: 2004/08/27 15:48:44 $ + Version: $Revision: 1.24 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -51,7 +51,7 @@ gdcmSeqEntry::gdcmSeqEntry(gdcmDocEntry* e, int depth) : gdcmDocEntry(e->GetDict this->ImplicitVR = e->IsImplicitVR(); this->Offset = e->GetOffset(); //this->printLevel = e->GetPrintLevel(); // no longer exists ?!? - this->SQDepthLevel = e->GetDepthLevel(); + this->SQDepthLevel = depth; } /** * \brief Canonical destructor. @@ -105,23 +105,17 @@ void gdcmSeqEntry::Write(FILE *fp, FileType filetype) { uint16_t seq_term_gr = 0xfffe; uint16_t seq_term_el = 0xe0dd; - uint32_t seq_term_lg = 0x00000000; + uint32_t seq_term_lg = 0xffffffff; uint16_t item_term_gr = 0xfffe; uint16_t item_term_el = 0xe00d; - + gdcmDocEntry::Write(fp, filetype); for(ListSQItem::iterator cc = GetSQItems().begin(); cc != GetSQItems().end(); ++cc) - { + { (*cc)->Write(fp, filetype); - - //we force the writting of an Item Delimitation item - // because we wrote the Item as a 'no Length' item - fwrite ( &item_term_gr,(size_t)2 ,(size_t)1 ,fp); - fwrite ( &item_term_el,(size_t)2 ,(size_t)1 ,fp); - fwrite ( &seq_term_lg, (size_t)4 ,(size_t)1 ,fp); // Heu ..... } //we force the writting of a Sequence Delimitation item