]> Creatis software - gdcm.git/blobdiff - Testing/TestSerieHelper.cxx
Use new gdcm2 style for Load
[gdcm.git] / Testing / TestSerieHelper.cxx
index 3cb4356827e9aa5fac998fc61cc5aed956b0b056..5ab5a289a121c8b0c80a4f2c5cf8402153c7dd26 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestSerieHelper.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/03 10:00:06 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2005/07/08 13:39:57 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -20,8 +20,6 @@
 #include "gdcmDebug.h"
 #include <iostream>
 
-typedef std::list<gdcm::File* > GdcmFileList;
-
 int TestSerieHelper(int argc, char *argv[])
 {  
    gdcm::SerieHelper *s;
@@ -40,7 +38,7 @@ int TestSerieHelper(int argc, char *argv[])
    std::cout << "Dir Name :[" << dirName << "]" << std::endl;
 
    s = new gdcm::SerieHelper();
-   s->SetDirectory(dirName, true); // true : recursive exploration 
+   s->SetDirectory(dirName, true); // true : recursive exploration
    std::cout << " -------------------------------------------Finish parsing :["
              << dirName << "]" << std::endl;
 
@@ -50,14 +48,14 @@ int TestSerieHelper(int argc, char *argv[])
 
    int nbFiles;
    // For all the Coherent Files lists of the gdcm::Serie
-   GdcmFileList *l = s->GetFirstCoherentFileList();
+   gdcm::FileList *l = s->GetFirstCoherentFileList();
    while (l)
    { 
       nbFiles = l->size() ;
       if ( l->size() > 3 ) // Why not ? Just an example, for testing
       {
          std::cout << "Sort list : " << nbFiles << " long" << std::endl;
-         s->OrderGdcmFileList(l);  // sort the list
+         s->OrderFileList(l);  // sort the list
       }
       l = s->GetNextCoherentFileList();
    }