Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

baciTestAlarmClassImpl.h

Go to the documentation of this file.
00001 #ifndef baciTestAlarmClassImpl_h 00002 #define baciTestAlarmClassImpl_h 00003 00004 /******************************************************************************* 00005 * ALMA - Atacama Large Millimiter Array 00006 * (c) European Southern Observatory, 2004 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: baciTestAlarmClassImpl.h,v 1.3 2008/10/01 02:26:45 cparedes Exp $" 00023 * 00024 * who when what 00025 * -------- -------- ---------------------------------------------- 00026 * oat 2008-02-28 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 <acsutil.h> 00039 00040 #include <baci.h> 00041 #include <baciTestS.h> 00042 00043 #include <baciROpattern.h> 00044 #include <baciRWpattern.h> 00045 00046 #include <baciCharacteristicComponentImpl.h> 00047 00048 #include <baciSmartPropertyPointer.h> 00049 00050 00051 class MyROPatternProperty : public baci::RWpattern 00052 { 00053 public: 00062 MyROPatternProperty(const ACE_CString &name, 00063 baci::BACIComponent *component_p, 00064 baci::ROpattern *roPatternProperty_p); 00065 00078 virtual void 00079 setValue (baci::BACIProperty *property_p, 00080 baci::BACIValue *value_p, 00081 Completion &completion, 00082 CBDescOut &descOut); 00083 00084 private: 00090 baci::ROpattern *m_roPatternProperty_p; 00091 00092 void operator=(const MyROPatternProperty&); 00093 }; 00094 00095 00096 00097 00103 class BaciTestAlarmClassImpl: public baci::CharacteristicComponentImpl, 00104 public POA_BACI_TEST::BaciTestAlarmClass 00105 { 00106 00107 public: 00108 // Constructors & Destructors 00109 BaciTestAlarmClassImpl(const ACE_CString& name, 00110 maci::ContainerServices* containerServices, 00111 bool monitoring=true); 00112 00116 virtual ~BaciTestAlarmClassImpl(); 00117 00118 00119 /* ----------------------------------------------------------------*/ 00120 /* --------------------- [ CORBA interface ] ----------------------*/ 00121 /* ----------------------------------------------------------------*/ 00122 00126 virtual void shutdown (); 00127 00131 virtual CORBA::Boolean isPropertiesMonitoringActive(); 00132 00133 virtual ACS::ROpattern_ptr roPatternProperty(); 00134 00135 virtual ACS::RWpattern_ptr rwPatternProperty(); 00136 00137 00138 private: 00139 00141 bool m_shutdown; 00142 00144 baci::SmartPropertyPointer<baci::ROpattern> m_roPatternProperty_sp; 00145 baci::SmartPropertyPointer<MyROPatternProperty> m_rwPatternProperty_sp; 00146 00150 void operator=(const BaciTestAlarmClassImpl&); 00151 }; 00152 00153 #endif /* baciTestAlarmClassImpl_h */

Generated on Thu Apr 30 02:30:50 2009 for ACS C++ API by doxygen 1.3.8