X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestWriteSimple.cxx;h=957ec144c28042041835d422e650e62e371b9738;hb=7456fe5d01a4cdcf3227ef46aa1b75a8ff970416;hp=ee4f15f976c831b46a54cc730992b65c68f637b5;hpb=3e82e8b67eddf5d4b95b6aa2a2e2615aced4c452;p=gdcm.git diff --git a/Example/TestWriteSimple.cxx b/Example/TestWriteSimple.cxx index ee4f15f9..957ec144 100644 --- a/Example/TestWriteSimple.cxx +++ b/Example/TestWriteSimple.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestWriteSimple.cxx,v $ Language: C++ - Date: $Date: 2005/02/02 10:06:32 $ - Version: $Revision: 1.11 $ + Date: $Date: 2005/07/08 12:02:02 $ + Version: $Revision: 1.12 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -30,7 +30,10 @@ int main(int argc, char *argv[]) std::string header = argv[1]; const char *output = argv[2]; - gdcm::File *f1 = new gdcm::File( header ); + gdcm::File *f1 = new gdcm::File( ); + f1->SetFileName ( header ); + f1->Load( ); + gdcm::FileHelper *f2 = new gdcm::FileHelper( f1 ); // If the following call is important, then the API sucks. Why is it