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

baciRObooleanSeq.h

Go to the documentation of this file.
00001 #ifndef _baciRObooleanSeq_H_
00002 #define _baciRObooleanSeq_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: baciRObooleanSeq.h,v 1.2 2012/10/09 14:22:58 bjeram Exp $"
00023 *
00024 * who       when        what
00025 * --------  ----------  ----------------------------------------------
00026 * pcolomer  2014/11/27  converted to a new class to handle alarm_on characteristic
00027 * bjeram    2003/02/18  removed everthing
00028 * msekoran  2001/02/10  created
00029 */
00030 
00031 #ifndef __cplusplus
00032 #error This is a C++ include file and cannot be used from plain C
00033 #endif
00034 
00035 #include <baciMonitor_T.h>
00036 #include <baciROcommonImpl_T.h>
00037 #include <baciPcontImpl_T.h>
00038 #include "baciAlarm_T.h"
00039 
00040 
00041 namespace baci {
00048 typedef  Monitor<ACS_MONITOR_SEQ(boolean, CORBA::Boolean)> MonitorbooleanSeq;
00052 #define ACS_RO_BOOLSEQ_TL \
00053         ACS::booleanSeq*/*T*/,              ACS::CBbooleanSeq/*TCB*/,           ACS::booleanSeqSeq/*TSeq*/, \
00054         ACS::booleanSeqSeq_out/*TSeq_out*/, ACS::Monitorboolean/*TMonitor*/,    baci::MonitorbooleanSeq/*TMonitorImpl*/, \
00055         ACS::booleanSeq/*TM*/,              CORBA::Boolean/*TS*/,               CORBA::Boolean/*TSM*/, \
00056         POA_ACS::RObooleanSeq/*POA_SK*/,    ACS::Alarmboolean/*TAlarm*/,        POA_ACS::CBbooleanSeq/*POA_CB*/, \
00057         const ACS::booleanSeq&/*TIN*/
00058 
00059 
00060 #define ACS_RO_BOOLSEQ_P ACS::booleanSeq*/*T*/, ACS::CBbooleanSeq/*TCB*/, ACS::booleanSeqSeq/*TSeq*/, \
00061                 ACS::booleanSeqSeq_out/*TSeq_out*/, ACS::Monitorboolean/*TMonitor*/, baci::MonitorbooleanSeq/*TMonitorImpl*/, \
00062                 ACS::booleanSeq/*TM*/, CORBA::Boolean/*TS*/, CORBA::Boolean/*TSM*/, POA_ACS::RObooleanSeq/*POA_SK*/
00063 
00064 
00065 class RObooleanSeq : public virtual PortableServer::RefCountServantBase,
00066                 public ROcommonImpl<ACS_RO_BOOLSEQ_TL/*ACS_RO_TL*/>,
00067                 public PcontImpl<ACS_RO_BOOLSEQ_P>
00068 {
00069   public:
00073     RObooleanSeq(const ACE_CString& name, BACIComponent *component_p, DevIO<ACS::booleanSeq> *devIO=0, bool flagdeldevIO=false);
00074 
00079     RObooleanSeq(bool init, const ACE_CString& name, BACIComponent *component_p, DevIO<ACS::booleanSeq> *devIO=0, bool flagdeldevIO=false );
00080 
00084     virtual ~RObooleanSeq();
00085 
00089     virtual CORBA::Boolean alarm_on ();
00090 
00094     virtual ACS::Subscription_ptr new_subscription_Alarm (
00095                 ACS::Alarmboolean *cb, const ACS::CBDescIn & desc);
00096 
00097   protected:
00098 
00103     virtual bool readCharacteristics();
00104 
00105   private:
00106 
00110     CORBA::Boolean      alarmOn_m;
00111 };
00112 
00113 
00114 
00115 }
00116 
00117 #endif  /* baciRObooleanSeq */
00118 

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