Program: bbtk
Module: $RCSfile: bbtkInterpreter.h,v $ $
Language: C++
- Date: $Date: 2008/04/22 08:29:09 $
- Version: $Revision: 1.27 $
+ Date: $Date: 2008/04/22 09:40:11 $
+ Version: $Revision: 1.28 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#define __bbtkInterpreter_h__
#include "bbtkVirtualExec.h"
+#include "bbtkExecuter.h"
#include <fstream>
#include <deque>
/// Sets the inputs of the workspace :
/// the map is passed as is to the Executer
void SetInputs(const std::map<std::string,std::string>& m)
- { mExecuter->SetInputs(m); }
+ { mVirtualExecuter->SetInputs(m); }
/// Puts the executer in "no exec" mode,
/// which creates but does not execute pipelines.
- void SetNoExecMode(bool b) { mExecuter->SetNoExecMode(b); }
+ void SetNoExecMode(bool b) { mVirtualExecuter->SetNoExecMode(b); }
///
//typedef Executer::DialogModeType DialogModeType;
typedef VirtualExec::DialogModeType DialogModeType;
- void SetDialogMode(DialogModeType t) { mExecuter->SetDialogMode(t); }
+ void SetDialogMode(DialogModeType t)
+ { mVirtualExecuter->SetDialogMode(t); }
/// Sets the bool that indicates wether we are in command line context
void SetCommandLine(bool v = true) { mCommandLine = v; }
#endif
/// Gets the Executer
- VirtualExec::Pointer GetExecuter() const { return mExecuter; }
+ VirtualExec::Pointer GetExecuter() const { return mVirtualExecuter; }
protected:
// ATTRIBUTES
/// The command executer used
- bbtk::VirtualExec::Pointer mExecuter;
+ bbtk::VirtualExec::Pointer mVirtualExecuter;
+ bbtk::Executer::WeakPointer mRealExecuter;
/// The user of the interpreter (0 if none)
bbtk::InterpreterUser* mUser;