X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fsrc%2FbbtkExecuter.h;h=34ad0a714b8e50aaec66eb1a3aed6a85784533f4;hb=cf155931d4fded21cd2aaaeb0f3ead82067d2bef;hp=1e59b2c488e8e248d53676084726f8f3765ccf22;hpb=4ad5b5ee44357ad873bc8c43230defb6d0a79879;p=bbtk.git diff --git a/kernel/src/bbtkExecuter.h b/kernel/src/bbtkExecuter.h index 1e59b2c..34ad0a7 100644 --- a/kernel/src/bbtkExecuter.h +++ b/kernel/src/bbtkExecuter.h @@ -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