]> Creatis software - bbtk.git/blobdiff - kernel/appli/bbs2cpp/bbs2cpp.cxx
DFCH: bbtkSystemTools class has been created and implemented
[bbtk.git] / kernel / appli / bbs2cpp / bbs2cpp.cxx
index 529a035dc6386d47d3a266548217444ce7784c54..8541b5ed1e854f75298e6d7b5dda0eac25de55ff 100644 (file)
@@ -1,3 +1,22 @@
+/*=========================================================================
+                                                                                
+  Program:   bbtk
+  Module:    $RCSfile: bbs2cpp.cxx,v $
+  Language:  C++
+  Date:      $Date: 2008/10/14 14:20:24 $
+  Version:   $Revision: 1.4 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
+
+
 #include "bbtkInterpreter.h"
 #include "bbtkUtilities.h"
 
@@ -8,7 +27,7 @@ int main(int argc, char* argv[])
   std::string file,path;
   file = bbtk::Utilities::ExtractScriptName(argv[1],path);
   file += ".h";
-  bbtk::Interpreter* I = new bbtk::Interpreter(file);
+  bbtk::Interpreter::Pointer I = bbtk::Interpreter::New(file);
 
   I->SetThrow(true);
 
@@ -21,10 +40,8 @@ int main(int argc, char* argv[])
       e.Print();
     }
 
-  delete I;
-
   return 0;
 }
-        
+
 // EOF