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

baciROboolean.h

Go to the documentation of this file.
00001 #ifndef baciROboolean_H_
00002 #define baciROboolean_H_
00003 
00004 /*******************************************************************
00005 * ALMA - Atacama Large Millimiter Array
00006 * (c) European Southern Observatory, 2003 
00007 *
00008 *This library is free software; you can redistribute it and/or
00009 *modify it under the terms of the GNU Lesser General Public
00010 *License as published by the Free Software Foundation; either
00011 *version 2.1 of the License, or (at your option) any later version.
00012 *
00013 *This library is distributed in the hope that it will be useful,
00014 *but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016 *Lesser General Public License for more details.
00017 *
00018 *You should have received a copy of the GNU Lesser General Public
00019 *License along with this library; if not, write to the Free Software
00020 *Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00021 *
00022 * "@(#) $Id: baciROboolean.h
00023 *
00024 * who       when        what
00025 * --------  ----------  ----------------------------------------------
00026 * pcolomer 2014/11/27   converted to a new class to handle alarm_on characteristic
00027 * bjeram   2003/07/10   created
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/*T*/,             ACS::CBboolean/*TCB*/,           ACS::booleanSeq/*TSeq*/, \
00053         ACS::booleanSeq_out/*TSeq_out*/, ACS::Monitorboolean/*TMonitor*/, baci::Monitorboolean/*TMonitorImpl*/, \
00054         CORBA::Boolean/*TM*/,            CORBA::Boolean/*TS*/,            CORBA::Boolean/*TSM*/, \
00055         POA_ACS::ROboolean/*POA_SK*/,    ACS::Alarmboolean/*TAlarm*/,     POA_ACS::CBboolean/*POA_CB*/, \
00056         CORBA::Boolean/*TIN*/
00057 
00058 #define ACS_RO_BOOL_P \
00059         CORBA::Boolean/*T*/,                     ACS::CBboolean/*TCB*/,                   ACS::booleanSeq/*TSeq*/, \
00060         ACS::booleanSeq_out/*TSeq_out*/, ACS::Monitorboolean/*TMonitor*/, baci::Monitorboolean/*TMonitorImpl*/, \
00061         CORBA::Boolean/*TM*/,            CORBA::Boolean/*TS*/,            CORBA::Boolean/*TSM*/, \
00062         POA_ACS::ROboolean/*POA_SK*/
00063 
00064 
00070 class baci_EXPORT ROboolean:  public virtual PortableServer::RefCountServantBase,
00071                               public ROcommonImpl<ACS_RO_BOOL_TL>, //ACS_RO_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 // ************************************************************************

Generated on Mon May 4 2015 08:27:42 for ACS-2015.4 C++ API by  doxygen 1.7.0