- int detail = atoi(detailStr.c_str());
- int level = atoi(levelStr.c_str());
- BlackBox* blackbox=NULL;
- if (nameblackbox.compare(".")==0)
- {
- blackbox=Current()->GetPrototype();
- } else {
- blackbox = Current()->GetPrototype()->bbFindBlackBox(nameblackbox);
- }
+ //=======================================================================
+ /// sets the level of message
+ void Executer::SetMessageLevel(const std::string &kind,
+ int level)
+ {
+ bbtk::MessageManager::SetMessageLevel(kind,level);
+ }
+ //=======================================================================
+
+ //=======================================================================
+ /// Prints help on the messages
+ void Executer::HelpMessages()
+ {
+ bbtk::MessageManager::PrintInfo();
+ }
+ //=======================================================================
+
+ //=======================================================================
+ ///
+ void Executer::Print(const std::string &str)
+ {
+ if (GetNoExecMode() && (GetCurrentDescriptor()==GetWorkspace()) ) return;
+ if (GetCurrentDescriptor()!=GetWorkspace()) return;
+
+ bbtkDebugMessageInc("Interpreter",9,"Interpreter::Print(\""<<str<<"\")"<<std::endl);
+
+ // TO DO :
+ // InterpretLine ("load std")
+ // InterpretLine("new ConcatStrings _C_ ") -> trouver un nom unique : # commande
+ // InterpretLine("new Print _P_")
+ // InterpretLine("connect _C_.Out _P_.In")
+ // int num = 1
+