X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=src%2FgdcmBinEntry.cxx;h=b27d35ccbea7875ad511c3ccfaeea0f1ab84dc40;hb=edfc14dd195f9759cf02da0959d96d1499d572be;hp=10fc9898cad6e9e771fdb386fc02348c407dccad;hpb=c852120fdb6d542d84f74440b68414fdb52178d7;p=gdcm.git diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index 10fc9898..b27d35cc 100644 --- a/src/gdcmBinEntry.cxx +++ b/src/gdcmBinEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmBinEntry.cxx,v $ Language: C++ - Date: $Date: 2004/11/24 16:39:18 $ - Version: $Revision: 1.38 $ + Date: $Date: 2004/11/30 16:29:01 $ + Version: $Revision: 1.41 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,6 +19,7 @@ #include "gdcmBinEntry.h" #include "gdcmDebug.h" #include +#include // for std::ios_base, since does not exist on gcc/Solaris namespace gdcm { @@ -105,9 +106,9 @@ void BinEntry::Print(std::ostream &os) * @param fp already open file pointer * @param filetype type of the file to be written */ -void BinEntry::Write(std::ofstream* fp, FileType filetype) +void BinEntry::WriteContent(std::ofstream* fp, FileType filetype) { - DocEntry::Write(fp, filetype); + DocEntry::WriteContent(fp, filetype); void* binArea = GetBinArea(); int lgr = GetLength(); if (binArea) @@ -120,7 +121,7 @@ void BinEntry::Write(std::ofstream* fp, FileType filetype) else { // nothing was loaded, but we need to skip space on disc - fp->seekp(lgr, std::ios_base::cur); + fp->seekp(lgr, std::ios::cur); } } //-----------------------------------------------------------------------------