+ void Interpreter::commandConnection(std::string nodeFrom, std::string outputLabel, std::string nodeTo, std::string inputLabel)
+ {
+ mVirtualExecuter->Connect(nodeFrom,outputLabel,nodeTo,inputLabel);
+ }
+
+ void Interpreter::commandPackage(std::string packageName)
+ {
+ mVirtualExecuter->BeginPackage(packageName);
+ }
+
+ void Interpreter::commandEndPackage()
+ {
+ mVirtualExecuter->EndPackage();
+ }
+
+ void Interpreter::commandDefine(std::string name, std::string pack, std::string scriptfilename)
+ {
+ mVirtualExecuter->Define(name,pack,scriptfilename);
+ }
+
+ void Interpreter::commandEndDefine()
+ {
+ mVirtualExecuter->EndDefine();
+ }
+
+ void Interpreter::commandKind(std::string kind)
+ {
+ mVirtualExecuter->Kind(kind);
+ }
+
+ void Interpreter::commandPrint(std::string value)
+ {
+ mVirtualExecuter->Print(value);
+ }
+
+
+ void Interpreter::commandExec(std::string word)
+ {
+ if (word=="freeze")
+ {
+ mVirtualExecuter->SetNoExecMode(true);
+ mThrow = false;
+ }
+ else if (word=="freeze_no_error")
+ {
+ mVirtualExecuter->SetNoExecMode(true);
+ mVirtualExecuter->SetNoErrorMode(true);
+ mThrow = false;
+ }
+ else if (word=="unfreeze")
+ {
+ mVirtualExecuter->SetNoExecMode(false);
+ mVirtualExecuter->SetNoErrorMode(false);
+ }
+ else
+ {
+ mVirtualExecuter->Execute(word);
+ } // if
+ }
+
+
+ void Interpreter::commandInput(std::string name, std::string box, std::string input,std::string help)
+ {
+ mVirtualExecuter->DefineInput(name,box,input,help);
+ }
+
+ void Interpreter::commandOutput(std::string name, std::string box, std::string output,std::string help)
+ {
+ mVirtualExecuter->DefineOutput(name,box,output,help);
+ }
+
+ void Interpreter::commandSet(std::string box, std::string input, std::string value)
+ {
+ mVirtualExecuter->Set(box,input,value);
+ }
+
+ void Interpreter::commandAuthor(std::string author)
+ {
+ mVirtualExecuter->Author(author);
+ }
+
+ void Interpreter::commandCategory(std::string categorytype)
+ {
+ mVirtualExecuter->Category(categorytype);
+ }
+
+
+
+ void Interpreter::commandDescription(std::string description)
+ {
+ mVirtualExecuter->Description(description);
+ }
+
+
+ void Interpreter::commandClear()
+ {
+ mVirtualExecuter->Clear();
+ }
+
+ void Interpreter::commandInclude(std::string word, bool ok)
+ {
+ // if 'source' was given (words.size()==3) then tell to set the
+ // source file name of the current complex box with the full file name included
+ if (mCommandLine)
+ {
+ InterpretFile(word, ok );
+ }
+ else
+ {
+ SwitchToFile(word , ok );
+ }
+ }
+
+
+ void Interpreter::commandLoad(std::string packageName)
+ {
+ GetExecuter()->LoadPackage(packageName);
+ }
+
+ void Interpreter::commandUnload(std::string packageName)
+ {
+ GetExecuter()->UnLoadPackage(packageName);
+ }
+
+ //ups2 EED Borrame
+
+