Changeset 5888 for code/branches/core5/src/libraries/core/BaseObject.cc
- Timestamp:
- Oct 6, 2009, 4:56:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/core/BaseObject.cc
r5887 r5888 300 300 @brief Fires an event (without a state). 301 301 */ 302 void BaseObject::fireEvent( )303 { 304 this->fireEvent(true );305 this->fireEvent(false );302 void BaseObject::fireEvent(const std::string& name) 303 { 304 this->fireEvent(true, name); 305 this->fireEvent(false, name); 306 306 } 307 307 … … 309 309 @brief Fires an event which activates or deactivates a state. 310 310 */ 311 void BaseObject::fireEvent(bool activate )312 { 313 this->fireEvent(activate, this );311 void BaseObject::fireEvent(bool activate, const std::string& name) 312 { 313 this->fireEvent(activate, this, name); 314 314 } 315 315 … … 317 317 @brief Fires an event which activates or deactivates a state with agiven originator (the object which triggered the event). 318 318 */ 319 void BaseObject::fireEvent(bool activate, BaseObject* originator )320 { 321 Event event(activate, originator );319 void BaseObject::fireEvent(bool activate, BaseObject* originator, const std::string& name) 320 { 321 Event event(activate, originator, name); 322 322 323 323 for (std::set<BaseObject*>::iterator it = this->eventListeners_.begin(); it != this->eventListeners_.end(); ++it)
Note: See TracChangeset
for help on using the changeset viewer.