Go to the documentation of this file.00001 #ifndef baciROboolean_H_
00002 #define baciROboolean_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
00029
00030 #ifndef __cplusplus
00031 #error This is a C++ include file and cannot be used from plain C
00032 #endif
00033
00034 #include <baciMonitor_T.h>
00035 #include <baciROcommonImpl_T.h>
00036 #include <baciPcontImpl_T.h>
00037 #include "baciAlarm_T.h"
00038
00039 namespace baci {
00040
00047 typedef Monitor<ACS_MONITOR(boolean, CORBA::Boolean)> Monitorboolean;
00051 #define ACS_RO_BOOL_TL \
00052 CORBA::Boolean, ACS::CBboolean, ACS::booleanSeq, \
00053 ACS::booleanSeq_out, ACS::Monitorboolean, baci::Monitorboolean, \
00054 CORBA::Boolean, CORBA::Boolean, CORBA::Boolean, \
00055 POA_ACS::ROboolean, ACS::Alarmboolean, POA_ACS::CBboolean, \
00056 CORBA::Boolean
00057
00058 #define ACS_RO_BOOL_P \
00059 CORBA::Boolean, ACS::CBboolean, ACS::booleanSeq, \
00060 ACS::booleanSeq_out, ACS::Monitorboolean, baci::Monitorboolean, \
00061 CORBA::Boolean, CORBA::Boolean, CORBA::Boolean, \
00062 POA_ACS::ROboolean
00063
00064
00070 class baci_EXPORT ROboolean: public virtual PortableServer::RefCountServantBase,
00071 public ROcommonImpl<ACS_RO_BOOL_TL>,
00072 public PcontImpl<ACS_RO_BOOL_P>
00073 {
00074 public:
00075
00081 ROboolean(const ACE_CString& name, BACIComponent *component_p, DevIO<CORBA::Boolean> *devIO=0, bool flagdeldevIO=false);
00082
00087 ROboolean(bool init, const ACE_CString& name, BACIComponent *component_p, DevIO<CORBA::Boolean> *devIO=0, bool flagdeldevIO=false );
00088
00092 virtual ~ROboolean();
00093
00097 virtual CORBA::Boolean alarm_on ();
00098
00102 virtual ACS::Subscription_ptr new_subscription_Alarm (
00103 ACS::Alarmboolean *cb, const ACS::CBDescIn & desc);
00104
00105 protected:
00106
00111 virtual bool readCharacteristics();
00112
00113 private:
00114
00118 CORBA::Boolean alarmOn_m;
00119 };
00120
00121
00122 };
00123
00124 #endif
00125
00126