00001 #ifndef _COUNTER_IDL_ 00002 #define _COUNTER_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: contNcTest_IF.idl,v 1.1 2008/05/23 12:53:45 eallaert Exp $" 00025 * 00026 * who when what 00027 * -------- ---------- ---------------------------------------------- 00028 * eallaert 2008-01-18 initial version 00029 * 00030 */ 00031 #include <acscomponent.idl> 00032 #include <ACSErrTypeCommon.idl> 00033 00034 #pragma prefix "alma" 00035 00040 module COUNTER 00041 { 00045 enum OnOffStates { ON, OFF }; 00046 //typedef float OnOffStates; 00047 00048 00053 struct statusBlockEvent { 00054 OnOffStates onOff; 00055 string myString; 00056 long counter1; 00057 long counter2; 00058 long counter3; 00059 boolean flipFlop; 00060 float period; 00061 }; 00062 00067 const string CHANNELNAME_COUNTER = "counter"; 00068 00069 // the supplier and consumer are both very simple components 00070 interface CounterSupplier : ACS::ACSComponent 00071 { 00072 long sendBlocks(in long initialVal, 00073 in long lastVal, 00074 in long changeVal, 00075 in float period) 00076 raises (ACSErrTypeCommon::CouldntPerformActionEx); 00077 00078 }; 00079 00080 interface CounterConsumer : ACS::ACSComponent 00081 { 00082 void getBlocks() raises (ACSErrTypeCommon::CouldntPerformActionEx); 00083 long waitTillDone() raises (ACSErrTypeCommon::CouldntPerformActionEx); 00084 }; 00085 00086 }; 00087 00088 #endif