]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkExecuter.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkExecuter.h
index 1e59b2c488e8e248d53676084726f8f3765ccf22..34ad0a714b8e50aaec66eb1a3aed6a85784533f4 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkExecuter.h,v $ $
   Language:  C++
-  Date:      $Date: 2008/04/18 12:59:15 $
-  Version:   $Revision: 1.13 $
+  Date:      $Date: 2008/10/02 07:43:20 $
+  Version:   $Revision: 1.15 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -67,6 +67,9 @@ namespace bbtk
     /// Sets the mode of dialog of the executer for Root inputs 
     void SetDialogMode(DialogModeType t) { mDialogMode = t; }
 
+    void SetNoErrorMode(bool b) { mNoErrorMode = b; }
+
+    bool GetNoErrorMode() const { return mNoErrorMode; }
 
 
     //=================================================================
@@ -186,13 +189,15 @@ namespace bbtk
     Package::Pointer GetUserPackage() 
     { return mRootPackage.lock(); }
 
+    /// Gets the current working black box 
+    ComplexBlackBoxDescriptor::Pointer GetCurrentDescriptor() 
+    { return mOpenDefinition.back().box; }
+    
+
   protected:
 
   private:
 
-    /// Gets the current working black box 
-    ComplexBlackBoxDescriptor::Pointer Current() 
-    { return mOpenDefinition.back().box; }
     
     /// Returns true when we are inside a define/endefine block
     //    bool InDefinitionBlock() { return (mOpenDefinition.size()>1); }
@@ -240,8 +245,13 @@ namespace bbtk
     /// no exec mode flag
     bool mNoExecMode;
 
+
     /// Dialog mode
     DialogModeType mDialogMode;
+
+    /// no error mode flag
+    bool mNoErrorMode;
+
   };
 }
 #endif