1
#ifndef P2P_EventWrapper_hxx
2
#define P2P_EventWrapper_hxx
5
#include "p2p/Event.hxx"
6
#include "p2p/EventConsumer.hxx"
14
class EventWrapper : public Event
17
EventWrapper(T* t) : mWrapped(t)
20
virtual void dispatch(EventConsumer& consumer)
22
consumer.consume(*mWrapped);
25
virtual resip::Data brief() const
27
return "Event Wrapper";
32
std::auto_ptr<T> mWrapped;
36
static std::auto_ptr<Event> wrap(T* t)
38
return std::auto_ptr<Event>(new EventWrapper<T>(t));
43
#endif // P2P_Event_hxx