summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP.pidl
blob: 4633577694156eab46d768508e9dea38fd0248b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//$Id$
// ================================================================
//
// = LIBRARY
//   TAO
//
// = FILENAME
//   GIOP1_2.pidl
//
// = DESCRIPTION
//   Some new data types included for GIOP 1.2
// ================================================================
#pragma prefix "omg.org"
module GIOP 
{
  typedef short AddressingDisposition;
  const short KeyAddr = 0;
  const short ProfileAddr = 1;
  const short ReferenceAddr = 2;

  struct Version
  {
    octet major;
    octet minor;
  };
  struct IORAddressingInfo 
  {
    unsigned long selected_profile_index;
    IOP::IOR ior;
  };

  union TargetAddress switch (AddressingDisposition) 
  {
    case KeyAddr: sequence <octet> object_key;
    case ProfileAddr: IOP::TaggedProfile profile;
    case ReferenceAddr: IORAddressingInfo ior;
  };
};