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

acssimTest.idl

Go to the documentation of this file.
00001 #ifndef _ACSSIM_TEST_IDL_
00002 #define _ACSSIM_TEST_IDL_
00003 
00004 /*******************************************************************************
00005 *    ALMA - Atacama Large Millimiter Array
00006 *    (c) European Southern Observatory, 2002
00007 *    Copyright by ESO (in the framework of the ALMA collaboration)
00008 *    and Cosylab 2002, All rights reserved
00009 *
00010 *    This library is free software; you can redistribute it and/or
00011 *    modify it under the terms of the GNU Lesser General Public
00012 *    License as published by the Free Software Foundation; either
00013 *    version 2.1 of the License, or (at your option) any later version.
00014 *
00015 *    This library is distributed in the hope that it will be useful,
00016 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 *    Lesser General Public License for more details.
00019 *
00020 *    You should have received a copy of the GNU Lesser General Public
00021 *    License along with this library; if not, write to the Free Software
00022 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00023 *
00024 * "@(#) $Id: acssimTest.idl,v 1.5 2004/08/26 22:31:54 dfugate Exp $"
00025 *
00026 * who       when      what
00027 * --------  --------  ----------------------------------------------
00028 * 
00029 */
00030 
00031 #include <baci.idl>
00032 #include <enumpropMACRO.idl>
00033 #include <acsnc.idl>
00034 
00035 #pragma prefix "alma"
00036 
00037 #define MAKE_METHOD(T) \
00038 typedef sequence<T> T##Seq; \
00039 typedef T T##Array[12]; \
00040 T T##Plain(out T z); \
00041 T T##On(in T z, inout T zz, out T zzz); \
00042 T##Seq T##SeqOn(in T##Seq z, inout T##Seq zz, out T##Seq zzz ); \
00043 T##Array T##ArrayOn(in T##Array z, inout T##Array zz, out T##Array zzz); \
00044 attribute T T##plainAttribute; \
00045 readonly attribute T T##ROAttribute; \
00046 attribute T##Seq T##plainSeqAttribute; \
00047 readonly attribute T##Seq T##ROSeqAttribute; \
00048 attribute T##Array T##plainArrayAttribute; \
00049 readonly attribute T##Array T##ROArrayAttribute
00050 
00051 module acssimTest
00052 {
00053     
00054     enum OnOffStates { ONN, ONNN, ONNNN, BAR, CAR, DAR, SAR, NAR, FAR };
00055     
00056 
00057     struct garbage
00058     {
00059         float absoluteDiff;
00060         OnOffStates status;
00061     };
00062 
00063 
00064     interface JunkCharComp : ACS::CharacteristicComponent {};
00065     interface JunkBaciProp : ACS::RWdouble {};
00066 
00067     struct complexStruct
00068     {
00069         garbage myGarbage;
00070         JunkCharComp myJunkCharComp;
00071     };
00072 
00073     //typedef long otherLong;
00074 
00075     interface JunkControl : ACS::CharacteristicComponent
00076         {
00077         //extremely simple
00078         oneway void onewayOn();
00079         void on();     
00080 
00081         MAKE_METHOD(char);
00082         MAKE_METHOD(long);
00083         MAKE_METHOD(OnOffStates);
00084         MAKE_METHOD(garbage);
00085         MAKE_METHOD(JunkCharComp);
00086         MAKE_METHOD(JunkBaciProp);
00087         MAKE_METHOD(complexStruct);
00088         //MAKE_METHOD(otherLong);
00089         };
00090 };
00091 #endif

Generated on Thu Jan 12 2012 23:13:14 for ACS-10.0 IDL interfaces by  doxygen 1.7.0