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

acsexmplLampImpl.h

Go to the documentation of this file.
00001 #ifndef acsexmplLampImpl_h
00002 #define acsexmplLampImpl_h
00003 /*******************************************************************************
00004 *    ALMA - Atacama Large Millimiter Array
00005 *    (c) European Southern Observatory, 2002
00006 *    Copyright by ESO (in the framework of the ALMA collaboration)
00007 *    and Cosylab 2002, All rights reserved
00008 *
00009 *    This library is free software; you can redistribute it and/or
00010 *    modify it under the terms of the GNU Lesser General Public
00011 *    License as published by the Free Software Foundation; either
00012 *    version 2.1 of the License, or (at your option) any later version.
00013 *
00014 *    This library is distributed in the hope that it will be useful,
00015 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 *    Lesser General Public License for more details.
00018 *
00019 *    You should have received a copy of the GNU Lesser General Public
00020 *    License along with this library; if not, write to the Free Software
00021 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00022 *
00023 * "@(#) $Id: acsexmplLampImpl.h,v 1.99 2008/10/01 04:30:47 cparedes Exp $"
00024 *
00025 * who       when      what
00026 * --------  --------  ----------------------------------------------
00027 * acaproni 2004-04-06 Use smart pointers for properties
00028 * david 2002-07-02 added GNU license info
00029 * david 2002-06-16 Finished adding doxygen comments.
00030 * david 2002-06-13 Deleted typedefinition of Lamp::*ActionFunction as it is not used in this example.
00031 * david 2002-06-10 Added some doxygen comments to clean it up for documentation
00032 * gchiozzi 2002-01-28 cleaned up remaining "mount" strings and replaced with "acsexmpl"
00033 * gchiozzi 2001-02-15 Added declaration of get_interface() method for Object Explorer
00034 * gchiozzi 2001-02-15 created created standard header
00035 * msekoran 2001-03-10 integrated with new BACI; ALMA coding convention used; doc.
00036 */
00037 
00038 #ifndef __cplusplus
00039 #error This is a C++ include file and cannot be used from plain C
00040 #endif
00041 
00042 #include <baciCharacteristicComponentImpl.h>
00043 #include <acsexmplLampS.h>
00044 
00045 #include <baciRWdouble.h>
00046 
00048 #include <baciSmartPropertyPointer.h>
00049 
00055 
00060 
00111 class Lamp: public baci::CharacteristicComponentImpl,
00112             public virtual POA_acsexmplLamp::Lamp,
00113             public baci::ActionImplementator
00114 {
00115   public:
00123     Lamp(
00124          const ACE_CString& name,
00125          maci::ContainerServices * containerServices);
00126     
00130     virtual ~Lamp();
00131    
00132     /* --------------- [ Action implementator interface ] -------------- */    
00156     virtual baci::ActionRequest 
00157     invokeAction (int function,
00158                   baci::BACIComponent *cob_p, 
00159                   const int &callbackID, 
00160                   const CBDescIn &descIn, 
00161                   baci::BACIValue *value_p, 
00162                   Completion &completion, 
00163                   CBDescOut &descOut);
00164     
00187     virtual baci::ActionRequest 
00188     onAction (baci::BACIComponent *cob_p, 
00189               const int &callbackID,
00190               const CBDescIn &descIn, 
00191               baci::BACIValue *value_p,
00192               Completion &completion, 
00193               CBDescOut &descOut);
00194     
00217     virtual baci::ActionRequest 
00218     offAction (baci::BACIComponent *cob_p, 
00219                const int &callbackID,
00220                const CBDescIn &descIn, 
00221                baci::BACIValue *value_p,
00222                Completion &completion, 
00223                CBDescOut &descOut);
00224     
00225     
00226     /* --------------------- [ CORBA interface ] ----------------------*/
00241     virtual void 
00242     on (ACS::CBvoid_ptr cb,
00243         const ACS::CBDescIn &desc);
00244     
00259     virtual void 
00260     off (ACS::CBvoid_ptr cb,
00261          const ACS::CBDescIn &desc);
00262     
00270     virtual ACS::RWdouble_ptr 
00271     brightness ();
00272     
00273   private:
00277      baci::SmartPropertyPointer<baci::RWdouble> m_brightness_sp;
00278 
00282     void operator=(const Lamp&);
00283     
00284 };
00285 /*\@}*/
00286 /*\@}*/
00287 
00288 #endif   /* acsexmplLampImpl_h */
00289 
00290 
00291 

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