+ bool mInScriptFile;
+ std::string mScriptFile;
+ int mScriptLine;
+ };
+ //=======================================================================
+*/
+
+
+
+ /*
+ //=======================================================================
+ // The "Quit" exception
+ class BBTK_EXPORT QuitException : public InterpreterError
+ {
+ public:
+ QuitException( bool in_script_file,
+ const std::string& script_file,
+ int script_line
+ )
+ : InterpreterError("QUIT",in_script_file,script_file,script_line)
+ {}
+ ~QuitException() throw() {}
+ };
+ //=======================================================================
+ const std::string BREAK("BREAK");
+ //=======================================================================
+ // The "Break" exception
+ class BBTK_EXPORT BreakException : public InterpreterError
+ {
+ public:
+ BreakException( bool in_script_file,
+ std::string script_file,
+ int script_line
+ )
+ : InterpreterError(BREAK,in_script_file,script_file,script_line)
+ { std::cout << "BUILDING BREAK"<<std::endl; }
+ ~BreakException() throw() {}
+ };
+ //=======================================================================
+ */
+
+ //=======================================================================
+ class BBTK_EXPORT Interpreter : public InterpreterVirtual
+ {
+ BBTK_OBJECT_INTERFACE_NO_CONDES(Interpreter);
+ typedef Object InterpreterVirtual;
+ public:
+ static Pointer New(const std::string& cpp_file = "");
+ static Pointer New(VirtualExec::Pointer);
+
+/* EED Borrame
+ typedef enum
+ {
+ Interpreter_OK,
+ Interpreter_ERROR,
+ Interpreter_QUIT,
+ Interpreter_BREAK,
+ }
+ ExitStatus;
+
+ /// Runs the interpretation of a file
+ ExitStatus InterpretFile( const std::string& filename, bool source = false);
+
+ /// Runs the interpretation of a buffer and deletes it !
+ ExitStatus InterpretBuffer( std::stringstream* buffer );
+
+ /// Runs the interpretation of a command
+ ExitStatus InterpretLine( const std::string& line );
+
+ /// Runs the interpretation of the currently open streams
+ ExitStatus InterpretCurrentStreams();
+
+ /// Launches a command line interpreter (with a prompt)
+ void CommandLineInterpreter();
+*/
+
+
+ /// 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)
+ { mVirtualExecuter->SetInputs(m); }
+
+ /// Puts the executer in "no exec" mode,
+ /// which creates but does not execute pipelines.
+ void SetNoExecMode(bool m) { mVirtualExecuter->SetNoExecMode(m); }
+
+ /// Puts the executer in "no error" mode,
+ /// Errors do not stop execution (but warnings are produced)
+ void SetNoErrorMode(bool m) { mVirtualExecuter->SetNoErrorMode(m);}
+ ///
+ //typedef Executer::DialogModeType DialogModeType;
+ typedef VirtualExec::DialogModeType DialogModeType;
+
+ void SetDialogMode(DialogModeType t) { mVirtualExecuter->SetDialogMode(t);}
+
+/*EED Borrame
+ /// Sets the bool that indicates wether we are in command line context
+ void SetCommandLine(bool v = true) { mCommandLine = v; }