Program: bbtk
Module: $RCSfile: bbtkInterpreter.cxx,v $
Language: C++
- Date: $Date: 2010/09/17 15:56:51 $
- Version: $Revision: 1.90 $
+ Date: $Date: 2010/09/18 22:31:40 $
+ Version: $Revision: 1.91 $
=========================================================================*/
/* ---------------------------------------------------------------------
*/
- void Interpreter::commandNew(std::string boxType, std::string boxName) //virtual
+ void Interpreter::commandNew(const std::string &boxType,const std::string &boxName) //virtual
{
mVirtualExecuter->Create(boxType,boxName);
}
- void Interpreter::commandDelete(std::string boxName) //virtual
+ void Interpreter::commandDelete(const std::string &boxName) //virtual
{
mVirtualExecuter->Destroy(boxName);
}
- void Interpreter::commandConnection(std::string nodeFrom, std::string outputLabel, std::string nodeTo, std::string inputLabel) //virtual
+ void Interpreter::commandConnection(const std::string &nodeFrom,const std::string &outputLabel,const std::string &nodeTo,const std::string &inputLabel) //virtual
{
mVirtualExecuter->Connect(nodeFrom,outputLabel,nodeTo,inputLabel);
}
- void Interpreter::commandPackage(std::string packageName) //virtual
+ void Interpreter::commandPackage(const std::string &packageName) //virtual
{
mVirtualExecuter->BeginPackage(packageName);
}
mVirtualExecuter->EndPackage();
}
- void Interpreter::commandDefine(std::string name, std::string pack, std::string scriptfilename) //virtual
+ void Interpreter::commandDefine(const std::string &name,const std::string &pack,const std::string &scriptfilename) //virtual
{
mVirtualExecuter->Define(name,pack,scriptfilename);
}
mVirtualExecuter->EndDefine();
}
- void Interpreter::commandKind(std::string kind) //virtual
+ void Interpreter::commandKind(const std::string &kind) //virtual
{
mVirtualExecuter->Kind(kind);
}
- void Interpreter::commandPrint(std::string value) //virtual
+ void Interpreter::commandPrint(const std::string &value) //virtual
{
mVirtualExecuter->Print(value);
}
- void Interpreter::commandExec(std::string word) //virtual
+ void Interpreter::commandExec(const std::string &word) //virtual
{
if (word=="freeze")
{
}
- void Interpreter::commandInput(std::string name, std::string box, std::string input,std::string help) //virtual
+ void Interpreter::commandInput(const std::string &name,const std::string &box,const std::string &input,const std::string &help) //virtual
{
mVirtualExecuter->DefineInput(name,box,input,help);
}
- void Interpreter::commandOutput(std::string name, std::string box, std::string output,std::string help) //virtual
+ void Interpreter::commandOutput(const std::string &name,const std::string &box,const std::string &output,const std::string &help) //virtual
{
mVirtualExecuter->DefineOutput(name,box,output,help);
}
- void Interpreter::commandSet(std::string box, std::string input, std::string value) //virtual
+ void Interpreter::commandSet(const std::string &box,const std::string &input,const std::string &value) //virtual
{
mVirtualExecuter->Set(box,input,value);
}
- void Interpreter::commandAuthor(std::string author) //virtual
+ void Interpreter::commandAuthor(const std::string &author) //virtual
{
mVirtualExecuter->Author(author);
}
- void Interpreter::commandCategory(std::string categorytype) //virtual
+ void Interpreter::commandCategory(const std::string &categorytype) //virtual
{
mVirtualExecuter->Category(categorytype);
}
- void Interpreter::commandDescription(std::string description) //virtual
+ void Interpreter::commandDescription(const std::string &description) //virtual
{
mVirtualExecuter->Description(description);
}
mVirtualExecuter->Clear();
}
- void Interpreter::commandInclude(std::string word, bool ok) //virtual
+ void Interpreter::commandInclude(const std::string &word, bool ok) //virtual
{
// 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
}
- void Interpreter::commandLoad(std::string packageName) //virtual
+ void Interpreter::commandLoad(const std::string &packageName) //virtual
{
GetExecuter()->LoadPackage(packageName);
}
- void Interpreter::commandUnload(std::string packageName) //virtual
+ void Interpreter::commandUnload(const std::string &packageName) //virtual
{
GetExecuter()->UnLoadPackage(packageName);
}
mVirtualExecuter->HelpMessages();
}
-//ups2 EED Borrame
- void Interpreter::commandMessage(std::string kind, std::string levelstr) //virtual
+ void Interpreter::commandMessage(const std::string &kind,const std::string &levelstr) //virtual
{
int level=0;
sscanf(levelstr.c_str(),"%d",&level);
*/
//=======================================================================
- void Interpreter::SetCurrentFileName(std::string fullPathScriptName) // virtual
+ void Interpreter::SetCurrentFileName(const std::string &fullPathScriptName) // virtual
{
GetExecuter()->SetCurrentFileName(fullPathScriptName);
}