X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexAnonymizeNoLoad.cxx;h=52968e0e967685580a5be34b301397298f86e19c;hb=a4a4d786fdefad3af77842f41b12dcb85b7b1142;hp=a5d3de75cef24fa173bff234f13b83f3d9ea8a6b;hpb=8218b27635bebfee81540217d64a9a0291248921;p=gdcm.git diff --git a/Example/exAnonymizeNoLoad.cxx b/Example/exAnonymizeNoLoad.cxx index a5d3de75..52968e0e 100644 --- a/Example/exAnonymizeNoLoad.cxx +++ b/Example/exAnonymizeNoLoad.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: exAnonymizeNoLoad.cxx,v $ Language: C++ - Date: $Date: 2005/05/03 10:40:28 $ - Version: $Revision: 1.6 $ + Date: $Date: 2005/05/04 07:29:17 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -52,9 +52,11 @@ int main(int argc, char *argv[]) f1 = new gdcm::File( ); f1->SetLoadMode(NO_SEQ - NO_SHADOW); res = f1->Load(fileName); - // IsReadable() is no usable here, because we deal with - // any kind of gdcm::Readable *document* (no only gdcm::File) - if (res) { + + // gdcm::File::IsReadable() is no usable here, because we deal with + // any kind of gdcm::Readable *document* + // not only gdcm::File (as opposed to gdcm::DicomDir) + if ( !res ) { std::cout <