]> Creatis software - clitk.git/commitdiff
merger works when files are ordered
authorPierre Gueth <pierre.gueth@creatis.insa-lyon.fr>
Thu, 7 Feb 2013 14:35:00 +0000 (15:35 +0100)
committerDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Fri, 26 Jul 2013 06:32:31 +0000 (08:32 +0200)
tests_dav/clitkMergeRootFiles.cxx

index ac1158087fdb45b8a831d356a23eed7ffc362e49..b3aa4c689a19cdcd3a406e4439700e149f12763e 100644 (file)
@@ -26,9 +26,6 @@
 using std::endl;
 using std::cout;
 
-typedef std::list<std::string> Strings;
-
-
 //-----------------------------------------------------------------------------
 int main(int argc, char * argv[]) {
 
@@ -64,8 +61,8 @@ int main(int argc, char * argv[]) {
 
          if (all_pet_output)
          {
-                 GateMergeManager* manager = new GateMergeManager(args_info.fastmerge_given,args_info.verbose_arg,true,0,".");
-                 delete manager;
+                 GateMergeManager manager(args_info.fastmerge_given,args_info.verbose_arg,true,0,"");
+                 manager.StartMergingFromFilenames(input_filenames,args_info.output_arg);
                  return 0;
          }
   }