X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDocEntry.cxx;h=54c7ed04a629726e3e8d8c184bfe8ea2822586ea;hb=0a8894522fde1e35128022e0df3f0366677be59e;hp=e299a36b45272349d07b91d7724e3673fa064922;hpb=ecac4d36edf15736ae8f516ef3f9d8a6396ed54c;p=gdcm.git diff --git a/src/gdcmDocEntry.cxx b/src/gdcmDocEntry.cxx index e299a36b..54c7ed04 100644 --- a/src/gdcmDocEntry.cxx +++ b/src/gdcmDocEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntry.cxx,v $ Language: C++ - Date: $Date: 2004/08/01 03:20:23 $ - Version: $Revision: 1.15 $ + Date: $Date: 2004/09/09 17:49:24 $ + Version: $Revision: 1.18 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -36,7 +36,8 @@ gdcmDocEntry::gdcmDocEntry(gdcmDictEntry* in) { ImplicitVR = false; - DictEntry = in; + DictEntry = in; + Offset = 0 ; // To avoid further missprinting } //----------------------------------------------------------------------------- @@ -110,6 +111,8 @@ void gdcmDocEntry::Print(std::ostream & os) /** * \ingroup gdcmDocEntry * \brief Writes the common part of any gdcmValEntry, gdcmBinEntry, gdcmSeqEntry + * @param fp already open file pointer + * @param filetype type of the file to be written */ void gdcmDocEntry::Write(FILE *fp, FileType filetype) { @@ -161,7 +164,7 @@ void gdcmDocEntry::Write(FILE *fp, FileType filetype) // Unknown was 'written' // deal with Little Endian fwrite ( &shortLgr,(size_t)2 ,(size_t)1 ,fp); - fwrite ( &z, (size_t)2 ,(size_t)1 ,fp); + fwrite ( &z, (size_t)2 ,(size_t)1 ,fp); } else {