• Classes
  • Modules
  • Namespaces
  • Files
  • Related Pages
  • File List
  • File Members

AlarmSource.h

Go to the documentation of this file.
00001 #ifndef ACS_ALARMSOURCE_H
00002 #define ACS_ALARMSOURCE_H
00003 /*
00004  *    ALMA - Atacama Large Millimiter Array
00005  *    (c) European Southern Observatory, 2011
00006  *    Copyright by ESO (in the framework of the ALMA collaboration),
00007  *    All rights reserved
00008  *
00009  *    This library is free software; you can redistribute it and/or
00010  *    modify it under the terms of the GNU Lesser General Public
00011  *    License as published by the Free Software Foundation; either
00012  *    version 2.1 of the License, or (at your option) any later version.
00013  *
00014  *    This library is distributed in the hope that it will be useful,
00015  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017  *    Lesser General Public License for more details.
00018  *
00019  *    You should have received a copy of the GNU Lesser General Public
00020  *    License along with this library; if not, write to the Free Software
00021  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00022  *    MA 02111-1307  USA
00023  */
00024 
00025 #ifndef __cplusplus
00026 #error This is a C++ include file and cannot be used from plain C
00027 #endif
00028 
00029 #include <string>
00030 
00031 #include <acscommonC.h>
00032 #include "Properties.h"
00033 
00034 namespace acsalarm
00035 {
00082         class AlarmSource {
00083 
00084         public:
00088                 virtual ~AlarmSource() {}
00089 
00100                 virtual void raiseAlarm(
00101                                 std::string faultFamily,
00102                                 std::string faultMember,
00103                                 int faultCode)=0;
00104 
00117                 virtual void raiseAlarm(
00118                                 std::string faultFamily,
00119                                 std::string faultMember,
00120                                 int faultCode,
00121                                 Properties properties)=0;
00122 
00133                 virtual void clearAlarm(
00134                                 std::string faultFamily,
00135                                 std::string faultMember,
00136                                 int faultCode)=0;
00137 
00158                 virtual void setAlarm(
00159                                 std::string faultFamily,
00160                                 std::string faultMember,
00161                                 int faultCode,
00162                                 Properties alarmProps,
00163                                 bool active)=0;
00164 
00183                 virtual void setAlarm(
00184                                 std::string faultFamily,
00185                                 std::string faultMember,
00186                                 int faultCode,
00187                                 bool active)=0;
00188 
00192                 virtual void terminateAllAlarms()=0;
00193 
00205                 virtual void queueAlarms(ACS::TimeInterval time)=0;
00206 
00218                 virtual void queueAlarms()=0;
00219 
00225                 virtual void flushAlarms()=0;
00226 
00236                 virtual void disableAlarms()=0;
00237 
00248                 virtual void enableAlarms()=0;
00249 
00253                 virtual void start()=0;
00254 
00258                 virtual void tearDown()=0;
00259         };
00260 }
00261 
00262 #endif // ACS_ALARMSOURCE_H

Generated on Thu Jan 12 2012 23:13:50 for ACS-10.0 C++ API by  doxygen 1.7.0