+
+ bool res;
+ if (argc > 4)
+ e1->SetLoadMode(NO_SEQ | NO_SHADOW);
+
+ // gdcm::File::IsReadable() is no usable here, because we deal with
+ // any kind of gdcm-Parsable *document*
+ // not only gdcm::File (as opposed to gdcm::DicomDir)
+ res = e1->Load( fileName.c_str() );
+ if ( !res )
+ {
+ delete e1;
+ return 0;
+ }
+