EGS Brachy
An egs++ user code for rapid brachytherapy calculations
Loading...
Searching...
No Matches
Publisher Class Reference

#include <pubsub.h>

Public Member Functions

 Publisher ()
virtual ~Publisher ()
void subscribe (Subscriber *s, EB_Message message)
void unsubscribe (Subscriber *s, EB_Message message)
void notify (EB_Message message, void *what=0, Subscriber *s=0)
void setNotifyEnabled (bool flag)
bool getNotifyEnabled () const

Private Attributes

map< EB_Message, list< Subscriber * > > subscribers
bool notifyEnabled

Detailed Description

Definition at line 77 of file pubsub.h.

Constructor & Destructor Documentation

◆ Publisher()

Publisher::Publisher ( )
inline

Definition at line 79 of file pubsub.h.

◆ ~Publisher()

virtual Publisher::~Publisher ( )
inlinevirtual

Definition at line 82 of file pubsub.h.

Member Function Documentation

◆ getNotifyEnabled()

bool Publisher::getNotifyEnabled ( ) const
inline

Definition at line 93 of file pubsub.h.

◆ notify()

void Publisher::notify ( EB_Message message,
void * what = 0,
Subscriber * s = 0 )

Definition at line 46 of file pubsub.cpp.

◆ setNotifyEnabled()

void Publisher::setNotifyEnabled ( bool flag)
inline

Definition at line 90 of file pubsub.h.

◆ subscribe()

void Publisher::subscribe ( Subscriber * s,
EB_Message message )
inline

Definition at line 83 of file pubsub.h.

◆ unsubscribe()

void Publisher::unsubscribe ( Subscriber * s,
EB_Message message )
inline

Definition at line 86 of file pubsub.h.

Member Data Documentation

◆ notifyEnabled

bool Publisher::notifyEnabled
private

Definition at line 98 of file pubsub.h.

◆ subscribers

map<EB_Message, list<Subscriber *> > Publisher::subscribers
private

Definition at line 97 of file pubsub.h.


The documentation for this class was generated from the following files: