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

acsexmplCalendarImpl.h

Go to the documentation of this file.
00001 #ifndef acsexamplCalendarImpl_h
00002 #define acsexamplCalendarImpl_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 *
00025 * "@(#) $Id: acsexmplCalendarImpl.h,v 1.95 2005/04/14 09:35:59 acaproni Exp $"
00026 *
00027 * who       when      what
00028 * --------  --------  ----------------------------------------------
00029 * acaproni 2004-04-06 Use smart pointers for properties
00030 * msekoran 2002-07-05 created
00031 */
00032 
00033 #ifndef __cplusplus
00034 #error This is a C++ include file and cannot be used from plain C
00035 #endif
00036 
00038 #include <baciCharacteristicComponentImpl.h>
00039 
00041 #include <acsexmplCalendarS.h>
00042 
00044 #include <baciRWpattern.h>
00045 #include <enumpropROImpl.h>
00046 #include <enumpropRWImpl.h>
00047 
00049 #include <baciSmartPropertyPointer.h>
00050 
00051 using namespace baci;
00052 
00097 class Calendar: public CharacteristicComponentImpl,     //Standard component superclass
00098                 public virtual POA_acsexmplCalendar::Calendar    //CORBA servant stub
00099 {  
00100   public:
00106     Calendar( 
00107              const ACE_CString &name,
00108              maci::ContainerServices * containerServices);
00109     
00113     virtual ~Calendar();
00114     
00115     /* --------------------- [ CORBA interface ] ----------------------*/
00123     virtual ::acsexmplCalendar::RWDaysEnum_ptr 
00124     day ()
00125         throw (CORBA::SystemException);
00126     
00134     virtual ::acsexmplCalendar::RWMonthEnum_ptr
00135     month ()
00136         throw (CORBA::SystemException); 
00137     
00145     virtual ::ACS::RWpattern_ptr 
00146     yearAttributes ()
00147         throw (CORBA::SystemException); 
00148     
00156     virtual ::acsexmplCalendar::ROStateEnum_ptr 
00157     state ()
00158         throw (CORBA::SystemException);
00159     
00160   private:
00164     SmartPropertyPointer<RWpattern> m_yearAttributes_sp;
00165     
00169     SmartPropertyPointer<
00170         RWEnumImpl<ACS_ENUM_T(acsexmplCalendar::DaysEnum),  POA_acsexmplCalendar::RWDaysEnum>
00171     > m_day_sp;
00172 
00176     SmartPropertyPointer<
00177         RWEnumImpl<ACS_ENUM_T(acsexmplCalendar::MonthEnum), POA_acsexmplCalendar::RWMonthEnum>
00178     > m_month_sp;
00179     
00183     SmartPropertyPointer<
00184         ROEnumImpl<ACS_ENUM_T(acsexmplCalendar::StateEnum), POA_acsexmplCalendar::ROStateEnum>
00185     > m_state_sp;
00186 
00190     void operator=(const Calendar&);
00191 };
00192 
00193 #endif  
00194 
00195 
00196 

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