Go to the documentation of this file.00001 #ifndef _baciROcommonImpl_T_H_
00002 #define _baciROcommonImpl_T_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00034 #ifndef __cplusplus
00035 #error This is a C++ include file and cannot be used from plain C
00036 #endif
00037
00038 #include "baciAlarm_T.h"
00039 #include "baciAlarmSystemMonitor_T.h"
00040 #include <baciPcommonImpl_T.h>
00041 #include <baciErrTypeDevIO.h>
00042 #include <baciErrTypeProperty.h>
00043
00044
00045
00049 #define ACS_RO_T(T, TC) TC, ACS::CB##T, ACS::T##Seq, ACS::T##Seq_out, ACS::Monitor##T, baci::Monitor##T, TC, TC, TC, POA_ACS::RO##T, ACS::Alarm##T, POA_ACS::CB##T, TC
00050
00054 #define ACS_RO_TL ACS_P_TL, TAlarm, POA_CB, TIN
00055
00056
00057
00061 #define ACS_RO_C ACS_P_C, class TAlarm, class POA_CB, class TIN
00062
00063 namespace baci {
00064
00070 template<ACS_RO_C>
00071 class baci_EXPORT ROcommonImpl : public virtual POA_SK,
00072 public PcommonImpl<ACS_P_TL>
00073 {
00074 public:
00080
00081
00087 ROcommonImpl(const ACE_CString& name, BACIComponent *component_p, DevIO<TM> *devIO, bool flagdeldevIO);
00088
00093 ROcommonImpl(bool init, const ACE_CString& name, BACIComponent *component_p, DevIO<TM> *devIO, bool flagdeldevIO);
00094
00098 virtual ~ROcommonImpl();
00099
00107 void setAlarmFaultFamily(const char* ff);
00108
00116 void setAlarmFaultMember(const char* fm);
00117
00121 const char* getAlarmFaultFamily() { return alarmFaultFamily_m.c_str(); }
00122
00126 const char* getAlarmFaultMember() { return alarmFaultMember_m.c_str(); }
00127
00131 int getAlarmLevel() { return this->alarmLevel_m;}
00132
00133
00134
00135
00136 protected:
00137
00143 virtual bool readCharacteristics();
00144
00145 protected:
00146
00148 EventDispatcher * monitorEventDispatcher_mp;
00149
00150
00151 ACS::TimeInterval alarmTimerTrig_m;
00152
00153 ACE_CString alarmFaultFamily_m;
00154 ACE_CString alarmFaultMember_m;
00155 int alarmLevel_m;
00156
00161 baci::AlarmSystemMonitorBase *alarmSystemMonitor_mp;
00162
00163 private:
00167 void operator=(const ROcommonImpl&);
00168
00172 ROcommonImpl(const ROcommonImpl&);
00173 };
00174
00175 };
00176
00177 #endif
00178
00179
00180
00181
00182
00183
00184
00185