UniSet  2.2.1
UniSetTypes_i.idl
См. документацию.
00001 /* This file is part of the UniSet project
00002  * Copyright (c) 2002 Free Software Foundation, Inc.
00003  * Copyright (c) 2002 Pavel Vainerman
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00018  */
00019 // --------------------------------------------------------------------------
00023 // --------------------------------------------------------------------------
00024 #ifndef UniSetTypes_i_IDL_
00025 #define UniSetTypes_i_IDL_
00026 // --------------------------------------------------------------------------
00027 //module UniSet
00028 //{
00029     module UniSetTypes
00030     {
00031         typedef long ObjectId;          
00032         typedef long ThresholdId;       
00033         typedef long TimerId;           
00034         typedef string<30> ObjectType;  
00036         const unsigned short SizeOfTransportMessage=85;
00037 
00038         typedef octet ByteOfMessage;        
00039         typedef ByteOfMessage RawDataOfTransportMessage[SizeOfTransportMessage];    
00047         struct TransportMessage
00048         {
00049             RawDataOfTransportMessage data;
00050             ObjectId consumer;
00051         };
00052 
00053 
00057         struct NodeInfo
00058         {
00059             ObjectId id;
00060             boolean connected;
00061             ObjectId dbserver;
00062             string<30> host;
00063             string<10> port;
00064         };
00065 
00067         struct SimpleInfo
00068         {
00069             ObjectId id;
00070             string info;
00071         };
00072 
00073         typedef sequence<SimpleInfo> SimpleInfoSeq;
00074 
00075 
00077         struct ConsumerInfo
00078         {
00079             ObjectId id;    
00080             ObjectId node;  
00081         };
00082 
00083 
00085         typedef sequence<ObjectId> IDSeq;
00086 
00087 
00088     };// end of module UniSetTypes
00089 
00090 
00091     module UniversalIO
00092     {
00096         enum IOType
00097         {
00098             UnknownIOType,
00099             DI, // DigitalInput
00100             DO, // DigitalOutput
00101             AI, // AnalogInput
00102             AO  // AnalogOutput
00103         };
00104 
00106          enum UIOCommand
00107          {
00108              UIONotify,            
00109              UIODontNotify,        
00110              UIONotifyChange,      
00111              UIONotifyFirstNotNull 
00112          };
00113 
00114     };    // end of module UniversalIO
00115 
00116 //};    // end of module UniSet
00117 // --------------------------------------------------------------------------------------------------------------
00118 #endif // of UniSetTypes_i_IDL