Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / GIOP.pidl
blob9a9d8f362d17edd3a85c8b3354f0713d85048d4c
1 // -*- IDL -*-
2 /**
3  * @file GIOP.pidl
4  *
5  * @brief Pre-compiled IDL source for the GIOP module.
6  */
8 #ifndef TAO_GIOP_PIDL
9 #define TAO_GIOP_PIDL
11 #include "tao/IOP.pidl"
13 #pragma prefix "omg.org"
15 module GIOP
17   typedef short AddressingDisposition;
18   const short KeyAddr = 0;
19   const short ProfileAddr = 1;
20   const short ReferenceAddr = 2;
22   struct Version
23   {
24     octet major;
25     octet minor;
26   };
28   struct IORAddressingInfo
29   {
30     unsigned long selected_profile_index;
31     IOP::IOR ior;
32   };
34   union TargetAddress switch (AddressingDisposition)
35   {
36     case KeyAddr: CORBA::OctetSeq object_key;
37     case ProfileAddr: IOP::TaggedProfile profile;
38     case ReferenceAddr: IORAddressingInfo ior;
39   };
41   enum MsgType {
42     Request,
43     Reply,
44     CancelRequest,
45     LocateRequest,
46     LocateReply,
47     CloseConnection,
48     MessageError,
49     Fragment
50   };
52   enum ReplyStatusType {
53     NO_EXCEPTION,
54     USER_EXCEPTION,
55     SYSTEM_EXCEPTION,
56     LOCATION_FORWARD,
57     LOCATION_FORWARD_PERM,
58     NEEDS_ADDRESSING_MODE
59   };
61   enum LocateStatusType {
62     UNKNOWN_OBJECT,
63     OBJECT_HERE,
64     OBJECT_FORWARD,
65     OBJECT_FORWARD_PERM,
66     LOC_SYSTEM_EXCEPTION,
67     LOC_NEEDS_ADDRESSING_MODE
68   };
71 #endif  /* TAO_GIOP_PIDL */