Changeset 6800 for code/trunk/src/libraries/core/Event.h
- Timestamp:
- Apr 29, 2010, 1:16:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/Event.h
r6417 r6800 46 46 BaseObject* originator_; //!< The object which triggered this event 47 47 std::string name_; //!< The name of this event 48 48 49 }; 49 50 … … 66 67 { 67 68 public: 68 EventState(Functor* statefunction, Identifier* subclass ) : bProcessingEvent_(false), activeEvents_(0), statefunction_(statefunction), subclass_(subclass) {}69 EventState(Functor* statefunction, Identifier* subclass, bool bSink = false) : bProcessingEvent_(false), activeEvents_(0), statefunction_(statefunction), subclass_(subclass), bSink_(bSink) {} 69 70 virtual ~EventState(); 70 71 … … 79 80 Functor* statefunction_; //!< A functor to set the state 80 81 Identifier* subclass_; //!< Originators must be an instance of this class (usually BaseObject, but some statefunctions allow a second argument with an originator of a specific class) 82 bool bSink_; //!< Determines whether the EventState acts as an EventSink forwarding any Event (even if the state didn't change) or in the normal manner, only processing Events that change the state. 81 83 }; 82 84 }
Note: See TracChangeset
for help on using the changeset viewer.