Changeset 3265 for code/branches/core4/src/core
- Timestamp:
- Jul 1, 2009, 1:24:30 PM (15 years ago)
- Location:
- code/branches/core4/src/core
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/core/ArgumentCompletionFunctions.cc
r3250 r3265 143 143 144 144 for (std::list<unsigned int>::const_iterator it = threadnumbers.begin(); it != threadnumbers.end(); ++it) 145 threads.push_back(ArgumentCompletionListElement( getConvertedValue<unsigned int,std::string>(*it)));145 threads.push_back(ArgumentCompletionListElement(multi_cast<std::string>(*it))); 146 146 147 147 return threads; -
code/branches/core4/src/core/ConfigFileManager.cc
r3250 r3265 124 124 { 125 125 if (this->additionalComment_ == "" || this->additionalComment_.size() == 0) 126 return (this->name_ + "[" + getConvertedValue<unsigned int,std::string>(this->index_, "0") + "]" + "=" + this->value_);127 else 128 return (this->name_ + "[" + getConvertedValue<unsigned int,std::string>(this->index_, "0") + "]=" + this->value_ + " " + this->additionalComment_);126 return (this->name_ + "[" + multi_cast<std::string>(this->index_, "0") + "]" + "=" + this->value_); 127 else 128 return (this->name_ + "[" + multi_cast<std::string>(this->index_, "0") + "]=" + this->value_ + " " + this->additionalComment_); 129 129 } 130 130 -
code/branches/core4/src/core/IRC.cc
r3196 r3265 68 68 { COUT(1) << "Error while initializing Tcl (IRC): " << e.what(); } 69 69 70 this->nickname_ = "orx" + getConvertedValue<int, std::string>((unsigned int)rand());70 this->nickname_ = "orx" + multi_cast<std::string>(static_cast<unsigned int>(rand())); 71 71 TclThreadManager::execute(threadID, "set nickname " + this->nickname_); 72 72 TclThreadManager::execute(threadID, "source irc.tcl"); -
code/branches/core4/src/core/TclThreadManager.cc
r3196 r3265 94 94 boost::mutex::scoped_lock bundles_lock(TclThreadManager::getInstance().bundlesMutex_); 95 95 TclThreadManager::getInstance().threadCounter_++; 96 std::string name = getConvertedValue<unsigned int,std::string>(TclThreadManager::getInstance().threadCounter_);96 std::string name = multi_cast<std::string>(TclThreadManager::getInstance().threadCounter_); 97 97 98 98 TclInterpreterBundle* bundle = new TclInterpreterBundle; … … 192 192 { 193 193 boost::mutex::scoped_lock queue_lock(TclThreadManager::getInstance().orxonoxInterpreterBundle_.queueMutex_); 194 output += getConvertedValue<unsigned int,std::string>(TclThreadManager::getInstance().orxonoxInterpreterBundle_.queue_.size());194 output += multi_cast<std::string>(TclThreadManager::getInstance().orxonoxInterpreterBundle_.queue_.size()); 195 195 } 196 196 output += "\t\t"; … … 201 201 for (std::map<unsigned int, TclInterpreterBundle*>::const_iterator it = TclThreadManager::getInstance().interpreterBundles_.begin(); it != TclThreadManager::getInstance().interpreterBundles_.end(); ++it) 202 202 { 203 std::string output = getConvertedValue<unsigned int,std::string>((*it).first);203 std::string output = multi_cast<std::string>((*it).first); 204 204 output += "\t\t"; 205 205 { 206 206 boost::mutex::scoped_lock queue_lock((*it).second->queueMutex_); 207 output += getConvertedValue<unsigned int,std::string>((*it).second->queue_.size());207 output += multi_cast<std::string>((*it).second->queue_.size()); 208 208 } 209 209 output += "\t\t"; … … 342 342 else 343 343 { 344 this->error("Error: No Tcl-interpreter with ID " + getConvertedValue<unsigned int,std::string>(threadID) + " existing.");344 this->error("Error: No Tcl-interpreter with ID " + multi_cast<std::string>(threadID) + " existing."); 345 345 return 0; 346 346 } … … 355 355 output += " "; 356 356 357 output += getConvertedValue<unsigned int,std::string>(*it);357 output += multi_cast<std::string>(*it); 358 358 } 359 359 return output; … … 444 444 if (bundle->queue_.size() >= TCLTHREADMANAGER_MAX_QUEUE_LENGTH) 445 445 { 446 this->error("Error: Queue of Tcl-interpreter " + getConvertedValue<unsigned int,std::string>(threadID) + " is full, couldn't add command.");446 this->error("Error: Queue of Tcl-interpreter " + multi_cast<std::string>(threadID) + " is full, couldn't add command."); 447 447 return; 448 448 } … … 492 492 if (std::find(target->queriers_.begin(), target->queriers_.end(), target->id_) != target->queriers_.end()) 493 493 { 494 this->error("Error: Circular query (" + this->dumpList(target->queriers_) + " -> " + getConvertedValue<unsigned int, std::string>(target->id_) + "), couldn't query Tcl-interpreter with ID " + getConvertedValue<unsigned int, std::string>(target->id_) + " from other interpreter with ID " + getConvertedValue<unsigned int,std::string>(querier->id_) + ".");494 this->error("Error: Circular query (" + this->dumpList(target->queriers_) + " -> " + multi_cast<std::string>(target->id_) + "), couldn't query Tcl-interpreter with ID " + multi_cast<std::string>(target->id_) + " from other interpreter with ID " + multi_cast<std::string>(querier->id_) + "."); 495 495 return false; 496 496 } … … 585 585 else 586 586 { 587 this->error("Error: Couldn't query Tcl-interpreter with ID " + getConvertedValue<unsigned int,std::string>(threadID) + ", interpreter is busy right now.");587 this->error("Error: Couldn't query Tcl-interpreter with ID " + multi_cast<std::string>(threadID) + ", interpreter is busy right now."); 588 588 } 589 589 } … … 665 665 catch (Tcl::tcl_error const &e) 666 666 { 667 TclThreadManager::getInstance().error("Tcl (ID " + getConvertedValue<unsigned int,std::string>(interpreterBundle->id_) + ") error: " + e.what());667 TclThreadManager::getInstance().error("Tcl (ID " + multi_cast<std::string>(interpreterBundle->id_) + ") error: " + e.what()); 668 668 } 669 669 catch (std::exception const &e) 670 670 { 671 TclThreadManager::getInstance().error("Error while executing Tcl (ID " + getConvertedValue<unsigned int,std::string>(interpreterBundle->id_) + "): " + e.what());671 TclThreadManager::getInstance().error("Error while executing Tcl (ID " + multi_cast<std::string>(interpreterBundle->id_) + "): " + e.what()); 672 672 } 673 673 -
code/branches/core4/src/core/input/KeyBinder.cc
r3196 r3265 187 187 for (unsigned int iDev = 0; iDev < numberOfJoySticks_; iDev++) 188 188 { 189 std::string deviceNumber = convertToString(iDev);189 std::string deviceNumber = multi_cast<std::string>(iDev); 190 190 // joy stick buttons 191 191 for (unsigned int i = 0; i < JoyStickButtonCode::numberOfButtons; i++)
Note: See TracChangeset
for help on using the changeset viewer.