Changeset 8806 for code/branches/output/src/libraries/core/command
- Timestamp:
- Jul 31, 2011, 5:15:13 PM (13 years ago)
- Location:
- code/branches/output/src/libraries/core/command
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/core/command/CommandEvaluation.cc
r7401 r8806 151 151 if (this->bEvaluatedArguments_) 152 152 { 153 COUT(6) << "CE_execute (evaluation): " << this->execCommand_->getName() << " with " << this->numberOfEvaluatedArguments_ << " arguments: " << this->arguments_[0] << ' ' << this->arguments_[1] << ' ' << this->arguments_[2] << ' ' << this->arguments_[3] << ' ' << this->arguments_[4] << std::endl;153 orxout(verbose, context::commands) << "CE_execute (evaluation): " << this->execCommand_->getName() << " with " << this->numberOfEvaluatedArguments_ << " arguments: " << this->arguments_[0] << ' ' << this->arguments_[1] << ' ' << this->arguments_[2] << ' ' << this->arguments_[3] << ' ' << this->arguments_[4] << endl; 154 154 155 155 // pass as many arguments to the executor as were evaluated (thus the executor can still use additional default values) … … 186 186 { 187 187 if (bPrintError) 188 COUT(1) << "Error: Can't evaluate arguments, no console command assigned." << std::endl;188 orxout(internal_error, context::commands) << "Can't evaluate arguments, no console command assigned." << endl; 189 189 return CommandExecutor::Error; 190 190 } … … 200 200 this->bEvaluatedArguments_ = true; 201 201 else if (bPrintError) 202 COUT(1) << "Error: Can't evaluate arguments, not enough arguments given." << std::endl;202 orxout(internal_error, context::commands) << "Can't evaluate arguments, not enough arguments given." << endl; 203 203 204 204 return error; -
code/branches/output/src/libraries/core/command/CommandExecutor.cc
r7401 r8806 261 261 if ((tokens.size() == 1 && ConsoleCommand::getCommand(tokens[0])) || (tokens.size() == 2 && ConsoleCommand::getCommand(tokens[0], tokens[1]))) 262 262 { 263 COUT(1) << "Error: A command with name \"" << alias << "\" already exists." << std::endl;263 orxout(user_error) << "A command with name \"" << alias << "\" already exists." << endl; 264 264 return; 265 265 } … … 271 271 createConsoleCommand(tokens[0], tokens[1], executor); 272 272 else 273 COUT(1) << "Error: \"" << alias << "\" is not a valid alias name (must have one or two words)." << std::endl;273 orxout(user_error) << "\"" << alias << "\" is not a valid alias name (must have one or two words)." << endl; 274 274 } 275 275 else 276 COUT(1) << "Error: \"" << command << "\" is not a valid command (did you mean \"" << evaluation.getCommandSuggestion() << "\"?)." << std::endl;276 orxout(user_error) << "\"" << command << "\" is not a valid command (did you mean \"" << evaluation.getCommandSuggestion() << "\"?)." << endl; 277 277 } 278 278 } -
code/branches/output/src/libraries/core/command/ConsoleCommand.cc
r8316 r8806 172 172 if (!this->executor_->defaultValueSet(i)) 173 173 { 174 COUT(2) << "Default value " << i << " is missing" << std::endl;174 orxout(internal_warning, context::commands) << "Default value " << i << " is missing" << endl; 175 175 return false; 176 176 } … … 202 202 if (!executor->defaultValueSet(i)) 203 203 { 204 COUT(2) << "Default value " << i << " is missing" << std::endl;204 orxout(internal_warning, context::commands) << "Default value " << i << " is missing" << endl; 205 205 return false; 206 206 } … … 229 229 else 230 230 { 231 COUT(1) << "Error: Couldn't assign new executor to console command \"" << this->baseName_ << "\", headers don't match." << std::endl;231 orxout(internal_error, context::commands) << "Couldn't assign new executor to console command \"" << this->baseName_ << "\", headers don't match." << endl; 232 232 return false; 233 233 } … … 256 256 else 257 257 { 258 COUT(1) << "Error: Couldn't assign new functor to console command \"" << this->baseName_ << "\", headers don't match." << std::endl;258 orxout(internal_error, context::commands) << "Couldn't assign new functor to console command \"" << this->baseName_ << "\", headers don't match." << endl; 259 259 return false; 260 260 } … … 307 307 this->pushFunction(new Executor(*this->executor_.get())); 308 308 else 309 COUT(1) << "Error: Couldn't push copy of executor in console command \"" << this->baseName_ << "\", no executor set." << std::endl;309 orxout(internal_error, context::commands) << "Couldn't push copy of executor in console command \"" << this->baseName_ << "\", no executor set." << endl; 310 310 } 311 311 … … 367 367 } 368 368 else if (object) 369 COUT(1) << "Error: Can't assign object to console command \"" << this->baseName_ << "\", no functor set." << std::endl;369 orxout(internal_error, context::commands) << "Can't assign object to console command \"" << this->baseName_ << "\", no functor set." << endl; 370 370 } 371 371 else if (object) 372 COUT(1) << "Error: Can't assign object to console command \"" << this->baseName_ << "\", no executor set." << std::endl;372 orxout(internal_error, context::commands) << "Can't assign object to console command \"" << this->baseName_ << "\", no executor set." << endl; 373 373 374 374 return false; … … 418 418 this->executor_->setDefaultValues(arg1); 419 419 else 420 COUT(1) << "Error: Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << std::endl;420 orxout(internal_error, context::commands) << "Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << endl; 421 421 422 422 return *this; … … 431 431 this->executor_->setDefaultValues(arg1, arg2); 432 432 else 433 COUT(1) << "Error: Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << std::endl;433 orxout(internal_error, context::commands) << "Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << endl; 434 434 435 435 return *this; … … 444 444 this->executor_->setDefaultValues(arg1, arg2, arg3); 445 445 else 446 COUT(1) << "Error: Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << std::endl;446 orxout(internal_error, context::commands) << "Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << endl; 447 447 448 448 return *this; … … 457 457 this->executor_->setDefaultValues(arg1, arg2, arg3, arg4); 458 458 else 459 COUT(1) << "Error: Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << std::endl;459 orxout(internal_error, context::commands) << "Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << endl; 460 460 461 461 return *this; … … 470 470 this->executor_->setDefaultValues(arg1, arg2, arg3, arg4, arg5); 471 471 else 472 COUT(1) << "Error: Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << std::endl;472 orxout(internal_error, context::commands) << "Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << endl; 473 473 474 474 return *this; … … 485 485 this->executor_->setDefaultValue(index, arg); 486 486 else 487 COUT(1) << "Error: Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << std::endl;487 orxout(internal_error, context::commands) << "Can't set default values in console command \"" << this->baseName_ << "\", no executor set." << endl; 488 488 489 489 return *this; … … 500 500 this->argumentCompleter_[index] = completer; 501 501 else 502 COUT(2) << "Warning: Couldn't add autocompletion-function for index " << index << " in console command \"" << this->baseName_ << "\": index out of bound." << std::endl;502 orxout(internal_warning, context::commands) << "Couldn't add autocompletion-function for index " << index << " in console command \"" << this->baseName_ << "\": index out of bound." << endl; 503 503 504 504 return *this; … … 611 611 { 612 612 if (group == "") 613 COUT(1) << "Error: Couldn't find console command with shortcut \"" << name << "\"" << std::endl;613 orxout(internal_error, context::commands) << "Couldn't find console command with shortcut \"" << name << "\"" << endl; 614 614 else 615 COUT(1) << "Error: Couldn't find console command with group \"" << group << "\" and name \"" << name << "\"" << std::endl;615 orxout(internal_error, context::commands) << "Couldn't find console command with group \"" << group << "\" and name \"" << name << "\"" << endl; 616 616 } 617 617 return 0; … … 644 644 { 645 645 if (group == "") 646 COUT(1) << "Error: Couldn't find console command with shortcut \"" << name << "\"" << std::endl;646 orxout(internal_error, context::commands) << "Couldn't find console command with shortcut \"" << name << "\"" << endl; 647 647 else 648 COUT(1) << "Error: Couldn't find console command with group \"" << group << "\" and name \"" << name << "\"" << std::endl;648 orxout(internal_error, context::commands) << "Couldn't find console command with group \"" << group << "\" and name \"" << name << "\"" << endl; 649 649 } 650 650 return 0; … … 681 681 { 682 682 if (group == "") 683 COUT(2) << "Warning: A console command with shortcut \"" << name << "\" already exists." << std::endl;683 orxout(internal_warning, context::commands) << "A console command with shortcut \"" << name << "\" already exists." << endl; 684 684 else 685 COUT(2) << "Warning: A console command with name \"" << name << "\" already exists in group \"" << group << "\"." << std::endl;685 orxout(internal_warning, context::commands) << "A console command with name \"" << name << "\" already exists in group \"" << group << "\"." << endl; 686 686 } 687 687 else -
code/branches/output/src/libraries/core/command/ConsoleCommand.h
r8418 r8806 53 53 void myCoutFunction(const std::string& text) // Define a static function 54 54 { 55 COUT(0) << "Text: " << text << std::endl;// Print the text to the console55 orxout() << "Text: " << text << endl; // Print the text to the console 56 56 } 57 57 … … 125 125 void myOtherCoutFunction(const std::string& text) // Define a new static function 126 126 { 127 COUT(0) << "Uppercase: " << getUppercase(text) << std::endl;// Print the text in uppercase to the console127 orxout() << "Uppercase: " << getUppercase(text) << endl; // Print the text in uppercase to the console 128 128 } 129 129 -
code/branches/output/src/libraries/core/command/ConsoleCommandCompilation.cc
r8788 r8806 48 48 // SetConsoleCommand("source", source).argumentCompleter(0, autocompletion::files()); // disabled because we use the implementation in Tcl 49 49 SetConsoleCommand("echo", echo); 50 // SetConsoleCommand("puts", puts); // disabled because we use the implementation in Tcl51 50 52 51 // SetConsoleCommand("read", read).argumentCompleter(0, autocompletion::files()); // disabled because we use the implementation in Tcl … … 66 65 if (it != executingFiles.end()) 67 66 { 68 COUT(1) << "Error: Recurring source command in \"" << filename << "\". Stopped execution." << std::endl;67 orxout(user_error) << "Recurring source command in \"" << filename << "\". Stopped execution." << endl; 69 68 return; 70 69 } … … 76 75 if (!file.is_open()) 77 76 { 78 COUT(1) << "Error: Couldn't open file \"" << filename << "\"." << std::endl;77 orxout(user_error) << "Couldn't open file \"" << filename << "\"." << endl; 79 78 return; 80 79 } … … 103 102 104 103 /** 105 @brief Writes text to the console, depending on the first argument with or without a line-break after it.106 */107 void puts(bool newline, const std::string& text)108 {109 if (newline)110 {111 COUT(0) << stripEnclosingBraces(text) << std::endl;112 }113 else114 {115 COUT(0) << stripEnclosingBraces(text);116 }117 }118 119 /**120 104 @brief Writes text to a file. 121 105 */ … … 127 111 if (!file.is_open()) 128 112 { 129 COUT(1) << "Error: Couldn't write to file \"" << filename << "\"." << std::endl;113 orxout(user_error) << "Couldn't write to file \"" << filename << "\"." << endl; 130 114 return; 131 115 } 132 116 133 file << text << std::endl;117 file << text << endl; 134 118 file.close(); 135 119 } … … 145 129 if (!file.is_open()) 146 130 { 147 COUT(1) << "Error: Couldn't append to file \"" << filename << "\"." << std::endl;131 orxout(user_error) << "Couldn't append to file \"" << filename << "\"." << endl; 148 132 return; 149 133 } 150 134 151 file << text << std::endl;135 file << text << endl; 152 136 file.close(); 153 137 } … … 163 147 if (!file.is_open()) 164 148 { 165 COUT(1) << "Error: Couldn't read from file \"" << filename << "\"." << std::endl;149 orxout(user_error) << "Couldn't read from file \"" << filename << "\"." << endl; 166 150 return ""; 167 151 } … … 192 176 if (expr.getResult() == 42.0) 193 177 { 194 COUT(3) << "Greetings from the restaurant at the end of the universe." << std::endl;178 orxout(user_info) << "Greetings from the restaurant at the end of the universe." << endl; 195 179 } 196 180 if (!expr.getRemains().empty()) 197 181 { 198 COUT(2) << "Warning: Expression could not be parsed to the end! Remains: '" << expr.getRemains() << '\'' << std::endl;182 orxout(user_warning) << "Expression could not be parsed to the end! Remains: '" << expr.getRemains() << '\'' << endl; 199 183 } 200 184 return static_cast<float>(expr.getResult()); … … 202 186 else 203 187 { 204 COUT(1) << "Error: Cannot calculate expression: Parse error." << std::endl;188 orxout(user_error) << "Cannot calculate expression: Parse error." << endl; 205 189 return 0; 206 190 } -
code/branches/output/src/libraries/core/command/ConsoleCommandCompilation.h
r7401 r8806 42 42 _CoreExport void source(const std::string& filename); 43 43 _CoreExport std::string echo(const std::string& text); 44 _CoreExport void puts(bool newline, const std::string& test);45 44 46 45 _CoreExport void write(const std::string& filename, const std::string& text); -
code/branches/output/src/libraries/core/command/Executor.cc
r8788 r8806 104 104 { 105 105 if (bPrintError) 106 COUT(2) << "Warning: Can't call executor " << this->name_ << " through parser: Not enough arguments or default values given (input: " << arguments.join() << ")." << std::endl;106 orxout(internal_warning) << "Can't call executor " << this->name_ << " through parser: Not enough arguments or default values given (input: " << arguments.join() << ")." << endl; 107 107 return MT_Type::Null; 108 108 } 109 109 110 COUT(5) << "Executor::parse: \"" << arguments.join(delimiter) << "\" -> " << argCount << " arguments: " << arg[0] << " / " << arg[1] << " / " << arg[2] << " / " << arg[3] << " / " << arg[4] << std::endl;110 orxout(verbose, context::executor) << "Executor::parse: \"" << arguments.join(delimiter) << "\" -> " << argCount << " arguments: " << arg[0] << " / " << arg[1] << " / " << arg[2] << " / " << arg[3] << " / " << arg[4] << endl; 111 111 112 112 // execute the function with the evaluated arguments (the default values of the executor are also included in these arguments) -
code/branches/output/src/libraries/core/command/Executor.h
r7401 r8806 57 57 void myFunction(int a, int b) // declare a static function 58 58 { 59 COUT(0) << "The sum is " << (a + b) << std::endl;// print the sum of a and b to the console59 orxout() << "The sum is " << (a + b) << endl; // print the sum of a and b to the console 60 60 } 61 61 -
code/branches/output/src/libraries/core/command/Functor.h
r8788 r8806 256 256 else 257 257 { 258 COUT(1) << "Error: Can't execute FunctorMember, no object set." << std::endl;258 orxout(internal_error) << "Can't execute FunctorMember, no object set." << endl; 259 259 return MT_Type::Null; 260 260 } … … 339 339 // see Functor::setRawObjectPointer() 340 340 inline void setRawObjectPointer(void*) 341 { COUT(2) << "Warning: Can't assign an object pointer to a static functor" << std::endl; }341 { orxout(internal_warning) << "Can't assign an object pointer to a static functor" << endl; } 342 342 // see Functor::getRawObjectPointer() 343 343 inline void* getRawObjectPointer() const -
code/branches/output/src/libraries/core/command/IOConsoleWindows.cc
r8805 r8806 250 250 || !SetConsoleMode(this->stdInHandle_, 0)) 251 251 { 252 orxout(user_error) << " Error:Could not set Windows console settings" << endl;252 orxout(user_error) << "Could not set Windows console settings" << endl; 253 253 return; 254 254 } -
code/branches/output/src/libraries/core/command/IRC.cc
r7401 r8806 85 85 } 86 86 catch (Tcl::tcl_error const &e) 87 { COUT(1) << "Tcl (IRC) error: " << e.what(); }87 { orxout(user_error, context::tcl) << "Tcl (IRC) error: " << e.what() << endl; } 88 88 89 89 this->nickname_ = "orx" + multi_cast<std::string>(static_cast<unsigned int>(rand())); … … 100 100 { 101 101 IRC::getInstance().initialize(); 102 COUT(1) << "Error: IRC client wasn't yet initialized, please try again." << std::endl;102 orxout(user_error) << "IRC client wasn't yet initialized, please try again." << endl; 103 103 return false; 104 104 } … … 110 110 } 111 111 catch (Tcl::tcl_error const &e) 112 { COUT(1) << "Tcl (IRC) error: " << e.what(); }112 { orxout(user_error, context::tcl) << "Tcl (IRC) error: " << e.what() << endl; } 113 113 114 114 return false; … … 139 139 void IRC::tcl_say(Tcl::object const &channel, Tcl::object const &nick, Tcl::object const &args) 140 140 { 141 COUT(0) << "IRC> " << nick.get() << ": " << stripEnclosingBraces(args.get()) << std::endl;141 orxout(message) << "IRC> " << nick.get() << ": " << stripEnclosingBraces(args.get()) << endl; 142 142 } 143 143 … … 145 145 void IRC::tcl_privmsg(Tcl::object const &query, Tcl::object const &nick, Tcl::object const &args) 146 146 { 147 COUT(0) << "IRC (" << query.get() << ")> " << nick.get() << ": " << stripEnclosingBraces(args.get()) << std::endl;147 orxout(message) << "IRC (" << query.get() << ")> " << nick.get() << ": " << stripEnclosingBraces(args.get()) << endl; 148 148 } 149 149 … … 151 151 void IRC::tcl_action(Tcl::object const &channel, Tcl::object const &nick, Tcl::object const &args) 152 152 { 153 COUT(0) << "IRC> * " << nick.get() << ' ' << stripEnclosingBraces(args.get()) << std::endl;153 orxout(message) << "IRC> * " << nick.get() << ' ' << stripEnclosingBraces(args.get()) << endl; 154 154 } 155 155 … … 157 157 void IRC::tcl_info(Tcl::object const &channel, Tcl::object const &args) 158 158 { 159 COUT(0) << "IRC> --> " << stripEnclosingBraces(args.get()) << std::endl;159 orxout(message) << "IRC> --> " << stripEnclosingBraces(args.get()) << endl; 160 160 } 161 161 } -
code/branches/output/src/libraries/core/command/TclBind.cc
r8788 r8806 106 106 } 107 107 catch (Tcl::tcl_error const &e) 108 { COUT(1) << "Tcl error while creating Tcl-interpreter: " << e.what() << std::endl; }108 { orxout(internal_error, context::tcl) << "Tcl error while creating Tcl-interpreter: " << e.what() << endl; } 109 109 } 110 110 } … … 129 129 } 130 130 catch (Tcl::tcl_error const &e) 131 { COUT(1) << "Tcl error while creating Tcl-interpreter: " << e.what() << std::endl; COUT(1) << "Error: Tcl isn't properly initialized. Orxonox might possibly not work like that." << std::endl; } 131 { 132 orxout(internal_error, context::tcl) << "Tcl error while creating Tcl-interpreter: " << e.what() << endl; 133 orxout(user_error, context::tcl) << "Tcl isn't properly initialized. Orxonox might possibly not work like that." << endl; 134 } 132 135 133 136 return interpreter; … … 154 157 std::string TclBind::tcl_query(Tcl::object const &args) 155 158 { 156 COUT(4) << "Tcl_query: " << args.get() << std::endl;159 orxout(verbose, context::commands) << "Tcl_query: " << args.get() << endl; 157 160 return TclBind::tcl_helper(args, true); 158 161 } … … 163 166 void TclBind::tcl_execute(Tcl::object const &args) 164 167 { 165 COUT(4) << "Tcl_execute: " << args.get() << std::endl;168 orxout(verbose, context::commands) << "Tcl_execute: " << args.get() << endl; 166 169 TclBind::tcl_helper(args, false); 167 170 } … … 186 189 switch (error) 187 190 { 188 case CommandExecutor::Error: COUT(1) << "Error: Can't execute command \"" << command << "\", command doesn't exist. (B)" << std::endl; break;189 case CommandExecutor::Incomplete: COUT(1) << "Error: Can't execute command \"" << command << "\", not enough arguments given. (B)" << std::endl; break;190 case CommandExecutor::Deactivated: COUT(1) << "Error: Can't execute command \"" << command << "\", command is not active. (B)" << std::endl; break;191 case CommandExecutor::Denied: COUT(1) << "Error: Can't execute command \"" << command << "\", access denied. (B)" << std::endl; break;191 case CommandExecutor::Error: orxout(user_error) << "Can't execute command \"" << command << "\", command doesn't exist. (B)" << endl; break; 192 case CommandExecutor::Incomplete: orxout(user_error) << "Can't execute command \"" << command << "\", not enough arguments given. (B)" << endl; break; 193 case CommandExecutor::Deactivated: orxout(user_error) << "Can't execute command \"" << command << "\", command is not active. (B)" << endl; break; 194 case CommandExecutor::Denied: orxout(user_error) << "Can't execute command \"" << command << "\", access denied. (B)" << endl; break; 192 195 } 193 196 194 197 if (error == CommandExecutor::Error) 195 COUT(3) << "Did you mean \"" << evaluation.getCommandSuggestion() << "\"?" << std::endl;198 orxout(user_info) << "Did you mean \"" << evaluation.getCommandSuggestion() << "\"?" << endl; 196 199 197 200 return result; … … 211 214 } 212 215 catch (Tcl::tcl_error const &e) 213 { COUT(1) << "Tcl error: " << e.what() << std::endl; }216 { orxout(user_error, context::tcl) << "Tcl error: " << e.what() << endl; } 214 217 } 215 218 … … 223 226 void TclBind::bgerror(const std::string& error) 224 227 { 225 COUT(1) << "Tcl background error: " << stripEnclosingBraces(error) << std::endl;228 orxout(user_error, context::tcl) << "Tcl background error: " << stripEnclosingBraces(error) << endl; 226 229 } 227 230 … … 243 246 } 244 247 catch (Tcl::tcl_error const &e) 245 { COUT(1) << "Tcl error: " << e.what() << std::endl; }248 { orxout(user_error, context::tcl) << "Tcl error: " << e.what() << endl; } 246 249 247 250 if (error) -
code/branches/output/src/libraries/core/command/TclThreadManager.cc
r8351 r8806 225 225 TclThreadManager::getInstance().numInterpreterBundles_++; 226 226 TclThreadManager::createWithId(TclThreadManager::getInstance().numInterpreterBundles_); 227 COUT(0) << "Created new Tcl-interpreter with ID " << TclThreadManager::getInstance().numInterpreterBundles_ << std::endl;227 orxout(user_info) << "Created new Tcl-interpreter with ID " << TclThreadManager::getInstance().numInterpreterBundles_ << endl; 228 228 return TclThreadManager::getInstance().numInterpreterBundles_; 229 229 } … … 288 288 } 289 289 catch (const Tcl::tcl_error& e) 290 { bundle->interpreter_ = 0; COUT(1) << "Tcl error while creating Tcl-interpreter (" << id_string << "): " << e.what() << std::endl; } 290 { 291 bundle->interpreter_ = 0; 292 orxout(user_error, context::tcl) << "Tcl error while creating Tcl-interpreter (" << id_string << "): " << e.what() << endl; 293 } 291 294 } 292 295 … … 407 410 { 408 411 // This query would lead to a deadlock - return with an error 409 TclThreadManager::error(" Error:Circular query (" + this->dumpList(source_bundle->queriers_.getList()) + ' ' + multi_cast<std::string>(source_bundle->id_) \412 TclThreadManager::error("Circular query (" + this->dumpList(source_bundle->queriers_.getList()) + ' ' + multi_cast<std::string>(source_bundle->id_) \ 410 413 + " -> " + multi_cast<std::string>(target_bundle->id_) \ 411 414 + "), couldn't query Tcl-interpreter with ID " + multi_cast<std::string>(target_bundle->id_) \ … … 448 451 switch (error) 449 452 { 450 case CommandExecutor::Error: TclThreadManager::error(" Error:Can't execute command \"" + command + "\", command doesn't exist. (T)"); break;451 case CommandExecutor::Incomplete: TclThreadManager::error(" Error:Can't execute command \"" + command + "\", not enough arguments given. (T)"); break;452 case CommandExecutor::Deactivated: TclThreadManager::error(" Error:Can't execute command \"" + command + "\", command is not active. (T)"); break;453 case CommandExecutor::Denied: TclThreadManager::error(" Error:Can't execute command \"" + command + "\", access denied. (T)"); break;453 case CommandExecutor::Error: TclThreadManager::error("Can't execute command \"" + command + "\", command doesn't exist. (T)"); break; 454 case CommandExecutor::Incomplete: TclThreadManager::error("Can't execute command \"" + command + "\", not enough arguments given. (T)"); break; 455 case CommandExecutor::Deactivated: TclThreadManager::error("Can't execute command \"" + command + "\", command is not active. (T)"); break; 456 case CommandExecutor::Denied: TclThreadManager::error("Can't execute command \"" + command + "\", access denied. (T)"); break; 454 457 } 455 458 } … … 476 479 // This happens if the main thread tries to query a busy interpreter 477 480 // To avoid a lock of the main thread, we simply don't proceed with the query in this case 478 TclThreadManager::error(" Error:Couldn't query Tcl-interpreter with ID " + multi_cast<std::string>(target_bundle->id_) + ", interpreter is busy right now.");481 TclThreadManager::error("Couldn't query Tcl-interpreter with ID " + multi_cast<std::string>(target_bundle->id_) + ", interpreter is busy right now."); 479 482 } 480 483 } … … 522 525 else 523 526 { 524 TclThreadManager::error(" Error:No Tcl-interpreter with ID " + multi_cast<std::string>(id) + " existing.");527 TclThreadManager::error("No Tcl-interpreter with ID " + multi_cast<std::string>(id) + " existing."); 525 528 return 0; 526 529 }
Note: See TracChangeset
for help on using the changeset viewer.