X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkTranscriptor.h;h=60b051b227c2c9c868add8b5cda347e0b939f5ee;hb=ef68c7c7d002e0fcaf3255868c54021b3cf077df;hp=c95bdbffa4c1f5deb82de9472a1f11a8686c573b;hpb=6c5d7746e8e4cb0b5d6e164b917008a7137910fb;p=bbtk.git diff --git a/kernel/src/bbtkTranscriptor.h b/kernel/src/bbtkTranscriptor.h index c95bdbf..60b051b 100644 --- a/kernel/src/bbtkTranscriptor.h +++ b/kernel/src/bbtkTranscriptor.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkTranscriptor.h,v $ $ Language: C++ - Date: $Date: 2008/04/08 06:59:30 $ - Version: $Revision: 1.9 $ + Date: $Date: 2008/10/02 07:43:21 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -37,14 +37,11 @@ namespace bbtk class /*BBTK_EXPORT*/ Transcriptor : public VirtualExec { - + BBTK_OBJECT_INTERFACE(Transcriptor); + typedef VirtualExec Superclass; public: + static Pointer New(const std::string& filename); - /// Constructor - Transcriptor(std::string filename); - - /// Destructor - ~Transcriptor( ); /// Sets the inputs of the workspace : void SetInputs(const std::map& m) { mInputs = m; } @@ -61,7 +58,16 @@ namespace bbtk m_Fp << " e->SetNoExecMode(false);" << std::endl; } - bool GetNoExecMode() const { return mNoExecMode; } + void SetNoErrorMode(bool b) + { + if (b) + m_Fp << " e->SetNoErrorMode(true);" << std::endl; + else + m_Fp << " e->SetNoErrorMode(false);" << std::endl; + } + + bool GetNoExecMode() const { return false; } + bool GetNoErrorMode() const { return false; } /// Sets the mode of dialog of the executer for Root inputs void SetDialogMode(DialogModeType t) { mDialogMode = t; } @@ -178,13 +184,12 @@ namespace bbtk protected: private: + /// Constructor + Transcriptor(const std::string& filename); /// The input values of the Root ComplexBlackBox std::map mInputs; - /// no exec mode flag - bool mNoExecMode; - /// Dialog mode DialogModeType mDialogMode;