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

baciROcontImpl_T.h

Go to the documentation of this file.
00001 #ifndef _baciROcontImpl_T_H_
00002 #define _baciROcontImpl_T_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: baciROcontImpl_T
00023 *
00024 * who       when        what
00025 * --------  ----------  ----------------------------------------------
00026 * bjeram    10/02/2003  created
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 <baciPcontImpl_T.h>
00039 #include <baciROcommonImpl_T.h>
00040 #include "baciAlarmSystemMonitorCont_T.h"
00041 
00042 namespace baci {
00043 
00049 template<ACS_RO_C>
00050 class baci_EXPORT ROcontImpl: public virtual POA_SK, 
00051                               public ROcommonImpl<ACS_RO_TL>,
00052                               public PcontImpl<ACS_P_TL>                                         
00053 {
00054 public:
00055    
00061   ROcontImpl(const ACE_CString& name, BACIComponent *component_p, DevIO<TM> *devIO=0, bool flagdeldevIO=false);
00062 
00067   ROcontImpl(bool init, const ACE_CString& name, BACIComponent *component_p, DevIO<TM> *devIO=0, bool flagdeldevIO=false );
00068 
00072   virtual ~ROcontImpl();
00073 
00074   /* ----------------------------------------------------------------- */
00075   /* ---------------------- [ CORBA interface ] ---------------------- */
00076   /* ----------------------------------------------------------------- */
00077         
00078   /* -------------------- [ RO interface ] -------------------- */
00079   
00080         virtual TS alarm_low_on ();
00081         
00082         virtual TS alarm_low_off ();
00083         
00084         virtual TS alarm_high_on ();
00085         
00086         virtual TS alarm_high_off ();
00087   
00088     virtual ACS::Subscription_ptr 
00089     new_subscription_Alarm (TAlarm *cb,
00090                             const ACS::CBDescIn & desc);
00091 
00092 protected:
00093 
00101     typedef ROcontImpl<ACS_RO_TL> PropType;
00113   virtual bool readCharacteristics();
00114   
00115 private:
00119         
00120   // RO
00121   TSM   alarmLowOn_m;                   
00122   TSM   alarmLowOff_m;                  
00123   TSM   alarmHighOn_m;                  
00124   TSM   alarmHighOff_m;                 
00125 };
00126 
00127 
00128 }; 
00129 
00130 #endif
00131 
00132 
00133 
00134 
00135 
00136 
00137 
00138 
00139 
00140 
00141 
00142 
00143 

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