#include <publisher.h>
Public Member Functions | |
int | post_event (Event *e) |
Post a new event, which will be delivered to the registered listeners. This is the principal method of this class. | |
int | post_event (Event *e) const |
void | block_all_events () |
void | unblock_all_events () |
bool | are_all_events_blocked () const |
void | dump_publisher (std::ostream &) |
Friends | |
class | Subscriber |
class | Listener |
In some cases where there's multiple inheritance, you have to inherits first your class from Publisher. If not, you can have a double memory free...
|
Post a new event, which will be delivered to the registered listeners. This is the principal method of this class.
class Event1: public Event {} ; Publisher* p = new Publisher ; p->post_event(new Event1) ; // or p->igs_emit(Event1) ; |