X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmValEntry.cxx;h=6293e5dc73b0740748ddeac3574a5a71fe95a1eb;hb=559c3639fc5b255b36a951f352db1addead9f78f;hp=aaf16de4d076b6fd718fe6352df86048d173a7f6;hpb=1d69b92978803204089d270599133917d944c651;p=gdcm.git diff --git a/src/gdcmValEntry.cxx b/src/gdcmValEntry.cxx index aaf16de4..6293e5dc 100644 --- a/src/gdcmValEntry.cxx +++ b/src/gdcmValEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmValEntry.cxx,v $ Language: C++ - Date: $Date: 2004/10/12 04:35:48 $ - Version: $Revision: 1.30 $ + Date: $Date: 2004/11/03 20:52:13 $ + Version: $Revision: 1.32 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -21,6 +21,8 @@ #include "gdcmGlobal.h" #include "gdcmUtil.h" +#include + namespace gdcm { @@ -174,7 +176,7 @@ void ValEntry::Print(std::ostream & os) /* * \brief canonical Writer */ -void ValEntry::Write(FILE* fp, FileType filetype) +void ValEntry::Write(std::ofstream* fp, FileType filetype) { DocEntry::Write(fp, filetype); @@ -198,8 +200,7 @@ void ValEntry::Write(FILE* fp, FileType filetype) for (unsigned int i=0; iwrite (GetValue().c_str(), (size_t)lgr ); // Elem value +// assert( lgr == GetValue().size() ); // FIXME ????? +// dbg.Assert(2, lgr == strlen(GetValue().c_str()), "Should be equal" ); } //-----------------------------------------------------------------------------