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

acsexmplRampedPowerSupplyImpl.h

Go to the documentation of this file.
00001 #ifndef acsexmplRampedPowerSupplyImpl_h
00002 #define acsexmplRampedPowerSupplyImpl_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 *
00024 * "@(#) $Id: acsexmplRampedPowerSupplyImpl.h,v 1.97 2005/04/14 09:35:59 acaproni Exp $"
00025 *
00026 * who       when      what
00027 * --------  --------  ----------------------------------------------
00028 * acaproni 2004-04-06 Use of the smart pointer for properties
00029 * david 2002-10-03 added inheritance from ACSDO and removed many methods
00030 * david 2002-07-02 added GNU license info
00031 * gchiozzi 2002-01-28 cleaned up remaining "mount" strings and replaced with "acsexmpl"
00032 * almamgr 2002-01-22 Replaced old include files with new axsexmpl... files
00033 * msekoran 2001-07-17 created
00034 */
00035 
00036 #ifndef __cplusplus
00037 #error This is a C++ include file and cannot be used from plain C
00038 #endif
00039 
00040 #include <acsexmplExport.h>
00041 
00043 #include "acsexmplPowerSupplyImpl.h"
00044 
00046 #include <acsexmplRampedPowerSupplyS.h>
00047 
00049 #include <baciROlong.h>
00050 #include <baciRWstring.h>
00051 
00053 #include "acsexmplLongDevIO.h"
00054 
00056 #include <baciSmartPropertyPointer.h>
00057 
00058 using namespace baci;
00059 
00066 #define START_RAMPING 3
00067 #define STOP_RAMPING 4
00068 
00069 
00126 class acsexmpl_EXPORT RampedPowerSupply: public PowerSupply,     //PowerSupply's superclass is CharacteristicComponent
00127                                          public virtual POA_RampedPS::RampedPowerSupply    //CORBA servant stub
00128 {
00129   public:
00135     RampedPowerSupply (
00136                        const ACE_CString &name,
00137                        maci::ContainerServices * containerServices);
00138     
00142     ~RampedPowerSupply();
00143     
00144     /* --------------- [ Action implementator interface ] -------------- */   
00165     virtual ActionRequest 
00166     invokeAction (int function,
00167                   BACIComponent *component_p, 
00168                   const int &callbackID, 
00169                   const CBDescIn &descIn, 
00170                   BACIValue *value_p, 
00171                   Completion &completion, 
00172                   CBDescOut &descOut);
00173     
00196     virtual ActionRequest 
00197     startRampingAction (BACIComponent *component_p, 
00198                         const int &callbackID,
00199                         const CBDescIn &descIn, 
00200                         BACIValue *value_p,
00201                         Completion &completion, 
00202                         CBDescOut &descOut);
00225     virtual ActionRequest 
00226     stopRampingAction (BACIComponent *component_p,
00227                        const int &callbackID,
00228                        const CBDescIn &descIn,
00229                        BACIValue *value_p,
00230                        Completion &completion,
00231                        CBDescOut &descOut);
00232     
00233     /* --------------------- [ CORBA interface ] ----------------------*/
00247     virtual void 
00248     startRamping (CORBA::Long rampingSteps,
00249                   ACS::CBvoid_ptr cb,
00250                   const ACS::CBDescIn &desc)
00251         throw (CORBA::SystemException);
00252     
00266     virtual void 
00267     stopRamping (ACS::CBvoid_ptr cb,
00268                  const ACS::CBDescIn &desc)
00269         throw (CORBA::SystemException);
00270     
00279     virtual ACS::RWstring_ptr
00280     rampingStatus ()
00281         throw (CORBA::SystemException);
00282     
00291     virtual ACS::ROlong_ptr 
00292     rampingStep ()
00293         throw (CORBA::SystemException);
00294     
00295   private:
00299      SmartPropertyPointer<ROlong> m_rampingStep_sp;
00300 
00307     DevIO<CORBA::Long> *m_rampingStep_devio_p;
00308 
00312      SmartPropertyPointer<RWstring> m_rampingStatus_sp;
00313 
00317     void operator=(const RampedPowerSupply&);
00318 };
00319 
00320 #endif   /* acsexmplRampedPowerSupplyImpl_h */
00321 
00322 
00323 

Generated on Sun Oct 29 02:26:25 2006 for ACS C++ API by doxygen 1.3.6