Changeset 8858 for code/trunk/src/modules/notifications
- Timestamp:
- Aug 23, 2011, 12:45:53 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 1 build 2 2 codeblocks 3 vs 3 4 dependencies
-
- Property svn:mergeinfo changed
/code/branches/output (added) merged: 8739-8740,8765,8771-8772,8774-8780,8787-8789,8794-8799,8801,8803-8812,8814,8816-8817,8820,8822,8825-8837,8840,8844,8846,8848-8850,8853-8854
- Property svn:ignore
-
code/trunk/src/modules/notifications/NotificationDispatcher.cc
r8706 r8858 137 137 return false; 138 138 139 COUT(4) << "NotificationDispatcher (&" << this << ") triggered." << std::endl;139 orxout(verbose, context::notifications) << "NotificationDispatcher (&" << this << ") triggered." << endl; 140 140 141 141 PlayerTrigger* pTrigger = orxonox_cast<PlayerTrigger*>(trigger); … … 155 155 if(player == NULL) 156 156 { 157 COUT(4) << "The NotificationDispatcher was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << std::endl;157 orxout(verbose, context::notifications) << "The NotificationDispatcher was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << endl; 158 158 return false; 159 159 } -
code/trunk/src/modules/notifications/NotificationManager.cc
r8706 r8858 57 57 RegisterRootObject(NotificationManager); 58 58 59 COUT(3) << "NotificatioManager created." << std::endl;59 orxout(internal_info, context::notifications) << "NotificatioManager created." << endl; 60 60 } 61 61 … … 71 71 this->allNotificationsList_.clear(); 72 72 73 COUT(3) << "NotificationManager destroyed." << std::endl;73 orxout(internal_info, context::notifications) << "NotificationManager destroyed." << endl; 74 74 } 75 75 … … 132 132 133 133 if(commandExecuted) 134 COUT(3) << "Notification command \"" << NotificationListener::command2Str(command) << "\" executed." << endl;134 orxout(internal_info, context::notifications) << "Notification command \"" << NotificationListener::command2Str(command) << "\" executed." << endl; 135 135 136 136 return commandExecuted; … … 198 198 } 199 199 200 COUT(4) << "Notification (&" << notification << ") registered with the NotificationManager." << std::endl;200 orxout(verbose, context::notifications) << "Notification (&" << notification << ") registered with the NotificationManager." << endl; 201 201 202 202 return true; … … 219 219 this->removeNotification(notification, *(this->notificationLists_.find(queue->getName())->second)); 220 220 221 COUT(4) << "Notification (&" << notification << ") unregistered with the NotificationManager from NotificationQueue " << queue->getName() << "." << std::endl;221 orxout(verbose, context::notifications) << "Notification (&" << notification << ") unregistered with the NotificationManager from NotificationQueue " << queue->getName() << "." << endl; 222 222 } 223 223 … … 351 351 queue->update(); // Update the queue. 352 352 353 COUT(4) << "NotificationQueue '" << queue->getName() << "' registered with the NotificationManager." << std::endl;353 orxout(verbose, context::notifications) << "NotificationQueue '" << queue->getName() << "' registered with the NotificationManager." << endl; 354 354 return true; 355 355 } … … 384 384 this->notificationLists_.erase(queue->getName()); 385 385 386 COUT(4) << "NotificationQueue '" << queue->getName() << "' unregistered with the NotificationManager." << std::endl;386 orxout(verbose, context::notifications) << "NotificationQueue '" << queue->getName() << "' unregistered with the NotificationManager." << endl; 387 387 } 388 388 -
code/trunk/src/modules/notifications/NotificationQueue.cc
r8706 r8858 131 131 { 132 132 this->registered_ = false; 133 COUT(1) << "Error: NotificationQueue '" << this->getName() << "' could not be registered." << std::endl;133 orxout(internal_error, context::notifications) << "NotificationQueue '" << this->getName() << "' could not be registered." << endl; 134 134 return; 135 135 } 136 136 137 COUT(3) << "NotificationQueue '" << this->getName() << "' created." << std::endl;137 orxout(internal_info, context::notifications) << "NotificationQueue '" << this->getName() << "' created." << endl; 138 138 } 139 139 … … 215 215 delete notifications; 216 216 217 COUT(4) << "NotificationQueue '" << this->getName() << "' updated." << std::endl;217 orxout(verbose, context::notifications) << "NotificationQueue '" << this->getName() << "' updated." << endl; 218 218 } 219 219 … … 232 232 this->push(notification, time); 233 233 234 COUT(4) << "NotificationQueue '" << this->getName() << "' updated. A new Notification has been added." << std::endl;234 orxout(verbose, context::notifications) << "NotificationQueue '" << this->getName() << "' updated. A new Notification has been added." << endl; 235 235 } 236 236 … … 265 265 this->notificationPushed(notification); 266 266 267 COUT(5) << "Notification \"" << notification->getMessage() << "\" pushed to NotificationQueue '" << this->getName() << "'" << endl;268 COUT(3) << "NotificationQueue \"" << this->getName() << "\": " << notification->getMessage() << endl;267 orxout(verbose_more, context::notifications) << "Notification \"" << notification->getMessage() << "\" pushed to NotificationQueue '" << this->getName() << "'" << endl; 268 orxout(internal_info, context::notifications) << "NotificationQueue \"" << this->getName() << "\": " << notification->getMessage() << endl; 269 269 } 270 270 … … 284 284 if(container == *it) 285 285 { 286 COUT(5) << "Notification \"" << (*it)->notification->getMessage() << "\" popped from NotificationQueue '" << this->getName() << "'" << endl;286 orxout(verbose_more, context::notifications) << "Notification \"" << (*it)->notification->getMessage() << "\" popped from NotificationQueue '" << this->getName() << "'" << endl; 287 287 this->ordering_.erase(it); 288 288 break; … … 311 311 std::vector<NotificationContainer*>::difference_type index = it - this->notifications_.begin (); 312 312 313 COUT(5) << "Notification \"" << (*it)->notification->getMessage() << "\" removed from NotificationQueue '" << this->getName() << "'" << endl;313 orxout(verbose_more, context::notifications) << "Notification \"" << (*it)->notification->getMessage() << "\" removed from NotificationQueue '" << this->getName() << "'" << endl; 314 314 315 315 this->ordering_.erase(containerIterator); … … 333 333 void NotificationQueue::clear(bool noGraphics) 334 334 { 335 COUT(4) << "Clearing NotificationQueue " << this->getName() << "." << endl;335 orxout(verbose, context::notifications) << "Clearing NotificationQueue " << this->getName() << "." << endl; 336 336 this->ordering_.clear(); 337 337 // Delete all NotificationContainers in the list. … … 367 367 if(size == 0) 368 368 { 369 COUT(2) << "Trying to set maximal size of NotificationQueue '" << this->getName() << "' to 0. Ignoring..." << endl;369 orxout(internal_warning, context::notifications) << "Trying to set maximal size of NotificationQueue '" << this->getName() << "' to 0. Ignoring..." << endl; 370 370 return; 371 371 } … … 398 398 if(time != NotificationQueue::INF && time <= 0) 399 399 { 400 COUT(2) << "Trying to set display time of NotificationQueue '" << this->getName() << "' to non-positive value. Ignoring..." << endl;400 orxout(internal_warning, context::notifications) << "Trying to set display time of NotificationQueue '" << this->getName() << "' to non-positive value. Ignoring..." << endl; 401 401 } 402 402 -
code/trunk/src/modules/notifications/NotificationQueueCEGUI.cc
r8729 r8858 143 143 if(size.x < 0.0 || size.x > 1.0 || size.z < 0.0 || size.z > 1.0) 144 144 { 145 COUT(2) << "The display size of the NotificationQueueCEGUI " << this->getName() << " was trying to be set, but the relative size was not in [0,1]. Aborting..." << endl;145 orxout(internal_warning, context::notifications) << "The display size of the NotificationQueueCEGUI " << this->getName() << " was trying to be set, but the relative size was not in [0,1]. Aborting..." << endl; 146 146 return; 147 147 } … … 183 183 if(position.x < 0.0 || position.x > 1.0 || position.z < 0.0 || position.z > 1.0) 184 184 { 185 COUT(2) << "The position the NotificationQueueCEGUI " << this->getName() << " was trying to be set, but the relative position was not in [0,1]. Aborting..." << endl;185 orxout(internal_warning, context::notifications) << "The position the NotificationQueueCEGUI " << this->getName() << " was trying to be set, but the relative position was not in [0,1]. Aborting..." << endl; 186 186 return; 187 187 }
Note: See TracChangeset
for help on using the changeset viewer.