ALMA Computing Group

acsexmplCalendar.midl

Go to the documentation of this file.
00001 #ifndef _CALENDAR_IDL_
00002 #define _CALENDAR_IDL_
00003 
00004 /*******************************************************************************
00005 *    ALMA - Atacama Large Millimiter Array
00006 *
00007 *    (c) European Southern Observatory, 2002
00008 *    Copyright by ESO (in the framework of the ALMA collaboration)
00009 *    and Cosylab 2002, All rights reserved
00010 *
00011 *    This library is free software; you can redistribute it and/or
00012 *    modify it under the terms of the GNU Lesser General Public
00013 *    License as published by the Free Software Foundation; either
00014 *    version 2.1 of the License, or (at your option) any later version.
00015 *
00016 *    This library is distributed in the hope that it will be useful,
00017 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019 *    Lesser General Public License for more details.
00020 *
00021 *    You should have received a copy of the GNU Lesser General Public
00022 *    License along with this library; if not, write to the Free Software
00023 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00024 *
00025 *
00026 * "@(#) $Id: acsexmplCalendar.midl,v 1.1 2005/04/11 13:40:10 gchiozzi Exp $"
00027 *
00028 * who       when      what
00029 * --------  --------  ----------------------------------------------
00030 * gchiozzi 2003-05-19 Put back ACS_ENUM
00031 */
00032 
00033 #include <baci.idl>
00034 #include <enumpropMACRO.idl>
00035 
00036 #pragma prefix "alma"
00037 
00042 module acsexmplCalendar 
00043 {
00044 
00047 
00049     enum DaysEnum { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday };
00050     ACS_ENUM(DaysEnum);
00051 
00052     
00054     enum MonthEnum { January, February, March, April, May, June, July, August, September, October, November, December };
00055     ACS_ENUM(MonthEnum);
00056 
00057     
00059     enum StateEnum { Late, UpToDate };
00060     ACS_ENUM(StateEnum);
00061     
00068     interface Calendar : ACS::CharacteristicComponent
00069         {
00073         readonly attribute RWDaysEnum day;
00074 
00078         readonly attribute RWMonthEnum month;
00079 
00083         readonly attribute ACS::RWpattern yearAttributes;
00084 
00088         readonly attribute ROStateEnum state;
00089         };  
00090 };
00091 
00092 #endif