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.98 2008/10/01 04:30:47 cparedes 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 00056 00060 00104 class Calendar: public baci::CharacteristicComponentImpl, //Standard component superclass 00105 public virtual POA_acsexmplCalendar::Calendar //CORBA servant stub 00106 { 00107 public: 00113 Calendar( 00114 const ACE_CString &name, 00115 maci::ContainerServices * containerServices); 00116 00120 virtual ~Calendar(); 00121 00122 /* --------------------- [ CORBA interface ] ----------------------*/ 00130 virtual ::acsexmplCalendar::RWDaysEnum_ptr 00131 day (); 00132 00140 virtual ::acsexmplCalendar::RWMonthEnum_ptr 00141 month (); 00142 00150 virtual ::ACS::RWpattern_ptr 00151 yearAttributes (); 00152 00160 virtual ::acsexmplCalendar::ROStateEnum_ptr 00161 state (); 00162 00163 private: 00167 baci::SmartPropertyPointer<baci::RWpattern> m_yearAttributes_sp; 00168 00172 baci::SmartPropertyPointer< 00173 RWEnumImpl<ACS_ENUM_T(acsexmplCalendar::DaysEnum), POA_acsexmplCalendar::RWDaysEnum> 00174 > m_day_sp; 00175 00179 baci::SmartPropertyPointer< 00180 RWEnumImpl<ACS_ENUM_T(acsexmplCalendar::MonthEnum), POA_acsexmplCalendar::RWMonthEnum> 00181 > m_month_sp; 00182 00186 baci::SmartPropertyPointer< 00187 ROEnumImpl<ACS_ENUM_T(acsexmplCalendar::StateEnum), POA_acsexmplCalendar::ROStateEnum> 00188 > m_state_sp; 00189 00193 void operator=(const Calendar&); 00194 }; 00195 /*\@}*/ 00196 /*\@}*/ 00197 00198 #endif 00199