#ifndef __CORBADOF_IDL #define __CORBADOF_IDL interface CorbaDof { // TResult. enum TResult{ FAILURE, SUCCESS, OVERLOAD }; // an identified for object type. typedef unsigned short ObjectType; typedef long long ObjectNumber; // List of ObjectNumber's. typedef sequence ObjectNumberList; // OID - the unique key for data-base objects struct OID { short m_DbsNumber; unsigned short m_ObjectType; // Real type is ObjectType long long m_ObjectNumber; // Real type is ObjectNumber }; // Range of allocated object types. struct OidRange { long long First; // Real type is ObjectNumber long long Last; // Real type is ObjectNumber }; // Bytes - an unlimited sequence of bytes. // (match the C 'Bytes' type in file Value.h) typedef sequence Bytes; // Timestamp and Date types. typedef unsigned long Timestamp; typedef unsigned long Date; // TupleItem - holds an attribute's data Name,Value. // (match the C 'TupleItem' class in file TupleItem.h) struct TupleItem { string sName; any aValue; }; // Tuple - holds a list of TupleItem's. // (match the C 'Tuple' class in file Tuple.h) typedef sequence Tuple; // TupleList - holds a sequence of Tuples. typedef sequence TupleList; // Constants. const short DEFAULT_DBS = -1; const ObjectType NULL_OBJECT_TYPE = 0; const ObjectNumber NULL_OBJECT_NUMBER = 0; // Timestamp,Date,ObjectNumber types to be set into Any. // NOT FOR USE. USED ONLY BY CorbaDofUtil. struct TimestampForAny { unsigned long aTimestamp; }; // Real member type is Timestamp struct DateForAny { unsigned long aDate; }; // Real member type is Date struct ObjectNumberForAny { long long aObjectNumber; }; // Real member type is ObjectNumber }; #endif