X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkVirtualExec.h;h=1bb48a94fab0729263345db374c2202d34eee9a8;hb=0bfd6ea8a50ca866039ce1eabdb8df2b3a0330b1;hp=f7c2295446c7fae4f3a556d762f72e6fea3f23fc;hpb=998354bb81a4f450cae3a2263838d7d3b6024bac;p=bbtk.git diff --git a/kernel/src/bbtkVirtualExec.h b/kernel/src/bbtkVirtualExec.h index f7c2295..1bb48a9 100644 --- a/kernel/src/bbtkVirtualExec.h +++ b/kernel/src/bbtkVirtualExec.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkVirtualExec.h,v $ $ Language: C++ - Date: $Date: 2008/02/05 12:16:56 $ - Version: $Revision: 1.6 $ + Date: $Date: 2008/03/07 08:40:14 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -28,14 +28,16 @@ #define __bbtkVirtualExec_h__ #include "bbtkSystem.h" -#include "bbtkComplexBlackBox.h" +//#include "bbtkComplexBlackBox.h" #include "bbtkFactory.h" -#include -#include +//#include +//#include namespace bbtk { + class Interpreter; + class /*BBTK_EXPORT*/ VirtualExec // All methods are pure virtual { @@ -48,6 +50,20 @@ namespace bbtk } DialogModeType; + VirtualExec() : mInterpreter(0) {} + + /// Sets the interpreter who uses it + void SetInterpreter(Interpreter* i) { mInterpreter = i; } + /// Gets the interpreter who uses it + Interpreter* GetInterpreter() { return mInterpreter; } + /// Gets the interpreter who uses it (const) + const Interpreter* GetInterpreter() const { return mInterpreter; } + + /// Gets the factory used by the executer + virtual Factory* GetFactory() { return 0; } + /// Gets the factory used by the executer (const) + virtual const Factory* GetFactory() const { return 0; } + /// Sets the inputs of the workspace : virtual void SetInputs(const std::map& m) = 0; @@ -71,6 +87,10 @@ namespace bbtk virtual void Define (const std::string &name, const std::string& pack, const std::string &scriptfilename) = 0; + + /// Sets the file name to use for the current definition + /// (Used to set it after the Define command) + virtual void SetCurrentFileName (const std::string &name ) = 0; /// End the definition of a ComplexBlackBox virtual void EndDefine () = 0; @@ -152,6 +172,9 @@ namespace bbtk private: + /// The interpreter which uses it (0 if none) + Interpreter* mInterpreter; + /* /// Gets the current working black box virtual ComplexBlackBoxDescriptor* Current() = 0; @@ -200,6 +223,7 @@ namespace bbtk /// Dialog mode DialogModeType mDialogMode; + */ }; } #endif