]> Creatis software - bbtk.git/commitdiff
re activate ExecBbiCommand
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 23 Jun 2008 08:32:04 +0000 (08:32 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 23 Jun 2008 08:32:04 +0000 (08:32 +0000)
packages/std/src/bbstdExecBbiCommand.cxx

index c52598db56ac542e2d0de94b024a9678c8b3e062..ba7957c9b04dbb3d6a722a417ea3f591adc66df9 100755 (executable)
@@ -17,14 +17,15 @@ namespace bbstd
 
   void ExecBbiCommand::DoProcess()
     {
-      /*
+     
       // Look for the interpreter
-      bbtk::Interpreter* I = 0;
+      bbtk::Interpreter::Pointer I;
          bool delete_inter = false; 
          if (bbGetParent() != 0) 
        {
-         bbtk::Factory* f = ((bbtk::ComplexBlackBoxDescriptor*)bbGetParent()
-                       ->bbGetDescriptor())->GetFactory();
+         bbtk::Factory::Pointer f 
+               = ((bbtk::ComplexBlackBoxDescriptor*)bbGetParent()
+                 ->bbGetDescriptor().get())->GetFactory();
          if ((f != 0)&&
              (f->GetExecuter()))
            {
@@ -34,7 +35,7 @@ namespace bbstd
       if (I==0) 
        {
          //      bbtkError("ExecBbiCommand::DoProcess() : could not find interpreter");
-         I = new bbtk::Interpreter();
+         I = bbtk::Interpreter::New();
          delete_inter = true; 
        }
 
@@ -67,8 +68,8 @@ namespace bbstd
          
        }
       
-      if (delete_inter) delete I;
-      */
+//      if (delete_inter) delete I;
+      
       /*  Grrr  not works in windows
        char * pch;
        pch = strtok (bbGetInputIn(),";");