Changeset 6800 for code/trunk/src/libraries/core/EventIncludes.h
- Timestamp:
- Apr 29, 2010, 1:16:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/EventIncludes.h
r6417 r6800 52 52 } \ 53 53 XMLPortEventStateIntern(xmlportevent##function, classname, statename, xmlelement, mode) 54 55 #define XMLPortEventSink(classname, subclassname, statename, function, xmlelement, mode) \ 56 orxonox::EventState* containername##function = this->getEventState(statename); \ 57 if (!containername##function) \ 58 { \ 59 containername##function = new orxonox::EventState(orxonox::createFunctor(&classname::function, this), orxonox::ClassIdentifier<subclassname>::getIdentifier(), true); \ 60 this->addEventState(statename, containername##function); \ 61 } \ 62 XMLPortEventStateIntern(xmlportevent##function, classname, statename, xmlelement, mode) 54 63 55 64 /** 56 @brief Like XMLPortEventState but with additional template arguments to identify the function of the state (if ambiguous). 65 @brief Like XMLPortEventState but creates an event sink instead of an event state. 66 The most important destinction between an EventState and an EventSink is, that an EventState only processes event which change the state of the EventState, where as an EventSink is an EventState that processes any Event that reaches it. 57 67 */ 58 68 #define XMLPortEventStateTemplate(classname, subclassname, statename, function, xmlelement, mode, ...) \
Note: See TracChangeset
for help on using the changeset viewer.