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

bell.h

Go to the documentation of this file.
00001 #ifndef __BELL_H_INCLUDED__
00002 #define __BELL_H_INCLUDED__
00003 
00004 // $Id$
00005 
00006 //**********************************************************************
00007 //                                                                     *
00008 //    Description:   'Bell Master' abstract interface for block        *
00009 //                   instrument bell.                                  *
00010 //                                                                     *
00011 //    Author:        Chris White (whitecf@bcs.org.uk)                  *
00012 //                                                                     *
00013 //    Copyright (C) 2003  Monitor Computing Services Ltd.              *
00014 //                                                                     *
00015 //    This program is free software; you can redistribute it and/or    *
00016 //    modify it under the terms of the GNU General Public License      *
00017 //    as published by the Free Software Foundation; either version 2   *
00018 //    of the License, or any later version.                            *
00019 //                                                                     *
00020 //    This program is distributed in the hope that it will be useful,  *
00021 //    but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00022 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00023 //    GNU General Public License for more details.                     *
00024 //                                                                     *
00025 //    You should have received a copy of the GNU General Public        *
00026 //    License (http://www.gnu.org/copyleft/gpl.html) along with this   *
00027 //    program; if not, write to:                                       *
00028 //       The Free Software Foundation Inc.,                            *
00029 //       59 Temple Place - Suite 330,                                  *
00030 //       Boston, MA  02111-1307,                                       *
00031 //       USA.                                                          *
00032 //                                                                     *
00033 //**********************************************************************
00034 //                                                                     *
00035 //    Notes:                                                           *
00036 //                                                                     *
00037 //**********************************************************************
00038 
00039 
00040 #include <watchble.h>
00041 
00042 
00043 namespace Monitor {
00044 namespace BellMaster {
00045 
00046 
00047 
00051 class Bell : public Monitor::Utility::Watchable
00052 {
00053 public:
00057      struct Busy {};
00058 
00059 
00063     Bell();
00064 
00068     virtual ~Bell();
00069 
00070 
00078     const Monitor::Utility::CallbackBase&
00079     addListener(const Monitor::Utility::CallbackBase&    newWatch) const;
00080 
00086     void
00087     removeListener(const void*    listener) const;
00088 
00094     virtual void
00095     ring() const
00096     throw (Busy);
00097 
00107     virtual void
00108     ring(unsigned*    newSequence)
00109     throw (Busy) = 0;
00110 };  // class Bell
00111 
00112 };  // namespace BellMaster
00113 };  // namespace Monitor
00114 
00115 
00116 #endif // __BELL_H_INCLUDED__

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