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

Monitor::BellMaster::PcBell Class Reference

instrument bell using PC (hardware to produce actual ring abstracted by 'Note' class). More...

#include <pcbell.h>

Inheritance diagram for Monitor::BellMaster::PcBell:

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

Public Methods

 PcBell (Monitor::Utility::Note &newNote)
 Constructor. More...

virtual ~PcBell ()
 Destructor. More...

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

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

Monitor::Utility::NotegetNote () const

Private Methods

void nextRing ()
 Sound the next ring in a sequence. More...


Private Attributes

unsigned * currentSequence
 Sequence currently being rung. More...

Monitor::Utility::Notenote
 Interface to hardware to produce actual ring. More...


Detailed Description

instrument bell using PC (hardware to produce actual ring abstracted by 'Note' class).

Definition at line 57 of file pcbell.h.


Constructor & Destructor Documentation

Monitor::BellMaster::PcBell::PcBell Monitor::Utility::Note   newNote
 

Constructor.

PcBell::~PcBell   [virtual]
 

Destructor.

Definition at line 60 of file pcbell.cpp.

References _USEMYTRACE_, and currentSequence.


Member Function Documentation

Ut::Note & PcBell::getNote   const
 

Returns:
Reference to this bell's note.

Definition at line 115 of file pcbell.cpp.

References _USEMYTRACE_, and note.

void PcBell::nextRing   [private]
 

Sound the next ring in a sequence.

If sequence is completed delete the sequence, otherwise start timing for next ring in sequence.

Definition at line 126 of file pcbell.cpp.

References _USEMYTRACE_, currentSequence, and ring.

void PcBell::ring unsigned *    newSequence throw (Bell::Busy) [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.

Implements Monitor::BellMaster::Bell.

Definition at line 94 of file pcbell.cpp.

References _USEMYTRACE_.

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

Sound a single ring.

Exceptions:
Bell::Busy  Unable to ring.

Reimplemented from Monitor::BellMaster::Bell.

Definition at line 73 of file pcbell.cpp.

References _USEMYTRACE_.

Referenced by nextRing.


Member Data Documentation

unsigned* Monitor::BellMaster::PcBell::currentSequence [private]
 

Sequence currently being rung.

Definition at line 109 of file pcbell.h.

Referenced by nextRing, and ~PcBell.

Monitor::Utility::Note& Monitor::BellMaster::PcBell::note [private]
 

Interface to hardware to produce actual ring.

Definition at line 114 of file pcbell.h.

Referenced by getNote.


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