Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

Monitor::BellMaster::Bell Class Reference

Abstract interface for block instrument bell. More...

#include <bell.h>

Inheritance diagram for Monitor::BellMaster::Bell:

Monitor::Utility::Watchable Monitor::BellMaster::PcBell List of all members.

Public Methods

 Bell ()
 Constructor. More...

virtual ~Bell ()
 Destructor. More...

const Monitor::Utility::CallbackBaseaddListener (const Monitor::Utility::CallbackBase &newWatch) const
 Add a callback to be invoked when the bell rings. More...

void removeListener (const void *listener) const
 Remove all callbacks for a given listener. More...

virtual void ring () const throw (Busy)
 Sound a single ring. More...

virtual void ring (unsigned *newSequence)=0 throw (Busy)
 Sound a sequence of rings. More...


Detailed Description

Abstract interface for block instrument bell.

Definition at line 51 of file bell.h.


Constructor & Destructor Documentation

Bell::Bell  
 

Constructor.

Definition at line 47 of file bell.cpp.

References _USEMYTRACE_.

Bell::~Bell   [virtual]
 

Destructor.

Definition at line 55 of file bell.cpp.

References _USEMYTRACE_.


Member Function Documentation

const Monitor::Utility::CallbackBase& Monitor::BellMaster::Bell::addListener const Monitor::Utility::CallbackBase   newWatch const
 

Add a callback to be invoked when the bell rings.

Parameters:
newWatch  Callback to add to list.
Returns:
Callback added to list.

void Bell::removeListener const void *    listener const
 

Remove all callbacks for a given listener.

Parameters:
listener  Object for which callbacks are to be to removed.

Definition at line 74 of file bell.cpp.

References _USEMYTRACE_, and Monitor::Utility::Watchable::removeWatcher.

virtual void Monitor::BellMaster::Bell::ring unsigned *    newSequence throw (Busy) [pure virtual]
 

Sound a sequence of rings.

Parameters:
newSequence  Set of millisecond intervals constituting a sequence of rings. Bell deletes the sequence when finished.
Exceptions:
Bell::Busy  Unable to ring the sequence.

Implemented in Monitor::BellMaster::PcBell.

void Bell::ring   const throw (Busy) [virtual]
 

Sound a single ring.

Exceptions:
Bell::Busy  Unable to ring.

Reimplemented in Monitor::BellMaster::PcBell.

Definition at line 85 of file bell.cpp.

References _USEMYTRACE_.


Generated on Wed Oct 29 20:54:52 2003 for Bellmaster BC Common by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002