31 #ifndef __GyotoHooks_h 32 #define __GyotoHooks_h virtual void tell(Gyoto::Hook::Teller *msg)
This is how a Teller tells.
virtual void tellListeners()
Call tell() on each hooked Listener.
Teller()
Default constructor.
virtual void hook(Listener *listener)
Start listening.
virtual ~Teller()
Destructor.
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
Private (undocumented) class to hold listeners_.
virtual void unhook(Listener *listener)
Stop listening.
I might listen to a Teller.
Definition: GyotoHooks.h:64
virtual ~Listener()
Destructor.
ListenerItem * listeners_
Linked list of Listener items.
Definition: GyotoHooks.h:89
Listen to me and I'll warn you when I change.
Definition: GyotoHooks.h:82