37 |
/** |
/** |
38 |
* Pointer to a function returning a newly allocated %event |
* Pointer to a function returning a newly allocated %event |
39 |
*/ |
*/ |
40 |
typedef event::event* (*new_event)(); |
typedef events::event* (*new_event)(); |
41 |
#endif // SWIG |
#endif // SWIG |
42 |
|
|
43 |
namespace event |
namespace events |
44 |
{ |
{ |
45 |
class factory; |
class factory; |
46 |
|
|
307 |
* A function that returns a new instance of an %event. |
* A function that returns a new instance of an %event. |
308 |
*/ |
*/ |
309 |
#define NEW_EVENT(evt)\ |
#define NEW_EVENT(evt)\ |
310 |
event::event* new_ ## evt () { return (event::event*) new event::evt; } |
events::event* new_ ## evt () { return (events::event*) new events::evt; } |
311 |
|
|
312 |
#endif // SWIG |
#endif // SWIG |
313 |
#endif // EVENT_LISTENER_H |
#endif // EVENT_LISTENER_H |