]> Creatis software - gdcm.git/commitdiff
Speed up -a little bit- the Loading, avoiding to parse any Sequence, not only
authorjpr <jpr>
Fri, 21 Oct 2005 16:32:10 +0000 (16:32 +0000)
committerjpr <jpr>
Fri, 21 Oct 2005 16:32:10 +0000 (16:32 +0000)
shadow ones.
(any way *all* the sequences are skipped a prpcessing time.)

Testing/TestAllVM.cxx

index 425567e2ced1cb50dd08ca86bb48ba09646033b6..e0181e9cfb705ab29757085281ad7a9391bc9a9a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestAllVM.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/21 15:16:22 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2005/10/21 16:32:10 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
 int DoTheVMTest(std::string const &filename)
 {
       gdcm::File file;
-      // Do not test unknow VM ...
-      file.SetLoadMode( gdcm::LD_NOSHADOW | gdcm::LD_NOSHADOWSEQ );
+      // - Do not test unknow VM in shadow groups (in element 0x0000 is present
+      // - Skip Sequences (if they are 'True Length'); loading will be quicker
+      //                  (anyway, Sequences are skipped at processing time ...)
+      file.SetLoadMode( gdcm::LD_NOSHADOW | gdcm::LD_NOSEQ );
+
       file.SetFileName( filename );
       if( !file.Load() ) //would be really bad...
         return 1;