summaryrefslogtreecommitdiff
path: root/TAO/tao/GIOP.pidl
blob: a830165b05e1b19915a38ad0901c4aa29af32af6 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
//$Id$
// ================================================================
//
// = LIBRARY
//   TAO
//
// = FILENAME
//   GIOP1_2.pidl
//
// = DESCRIPTION
//   Some new data types included for GIOP 1.2
//   This file was used to generate the code in
//   GIOP*.* The command used to generate code
//   is:
//
//     tao_idl
//        -o orig -GA -I.. -SS -Sc
//          -Wb,export_macro=TAO_Export
//          -Wb,export_include="tao/TAO_Export.h"
//          -Wb,pre_include="ace/pre.h"
//          -Wb,post_include="ace/post.h"
//          -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
//          -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
//          GIOP.pidl
//
// ================================================================

#ifndef TAO_GIOP_PIDL
#define TAO_GIOP_PIDL

#include "tao/IOP_IOR.pidl"

#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: CORBA::OctetSeq object_key;
    case ProfileAddr: IOP::TaggedProfile profile;
    case ReferenceAddr: IORAddressingInfo ior;
  };

  enum MsgType {
    Request,
    Reply,
    CancelRequest,
    LocateRequest,
    LocateReply,
    CloseConnection,
    MessageError,
    Fragment
  };

  enum ReplyStatusType {
    NO_EXCEPTION,
    USER_EXCEPTION,
    SYSTEM_EXCEPTION,
    LOCATION_FORWARD,
    LOCATION_FORWARD_PERM,
    NEEDS_ADDRESSING_MODE
  };

  enum LocateStatusType {
    UNKNOWN_OBJECT,
    OBJECT_HERE,
    OBJECT_FORWARD,
    OBJECT_FORWARD_PERM,
    LOC_SYSTEM_EXCEPTION,
    LOC_NEEDS_ADDRESSING_MODE
  };
};

#endif  /* TAO_GIOP_PIDL */