]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdExecSystemCommand.cxx
Feature #1629 Added a box to multiply two double inputs.
[bbtk.git] / packages / std / src / bbstdExecSystemCommand.cxx
index f30234f7f6f3875cf4de9f317f497fe99738b572..f01fcb2941d3ef95b1db59c83def4fa0d2c159c4 100755 (executable)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdExecSystemCommand.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:26 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2011/07/12 16:31:00 $
+  Version:   $Revision: 1.10 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -39,11 +39,17 @@ namespace bbstd
   BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,ExecSystemCommand);
   BBTK_BLACK_BOX_IMPLEMENTATION(ExecSystemCommand,bbtk::AtomicBlackBox);
 
-  void ExecSystemCommand::bbUserConstructor() 
+  void ExecSystemCommand::bbUserSetDefaultValues() 
   { 
     bbSetInputIn("help");
   }
-
+  void ExecSystemCommand::bbUserInitializeProcessing() 
+  { 
+  }
+  void ExecSystemCommand::bbUserFinalizeProcessing() 
+  {
+  }
+  
   void ExecSystemCommand::DoProcess()
   {
     bool ok=true;
@@ -66,6 +72,9 @@ namespace bbstd
                  ccommand[i]=34;
         }
      }
+#if defined(_WIN32)
+       ccommand="start /b "+ccommand;
+#endif // defined(_WIN32)      
        std::cout << "*** Executing system command : '"<<ccommand<<"'"<<std::endl;
        system ( ccommand.c_str() );
        pos1=pos2+1;