summaryrefslogtreecommitdiff
path: root/TAO/tao/BiDir_GIOP/BiDirPolicy.pidl
blob: 2d8b3b01aa305da8e9d3f2c64f64a042059c03a3 (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
// $Id$

//
//   This file was used to generate the code in
//   BiDirPolicy*.* The command used to generate code
//   is:
//
//     tao_idl -o orig -Ge 1 -Sa -St \
//          -Wb,export_macro=TAO_BiDirGIOP_Export \
//          -Wb,export_include="bidirgiop_export.h" \
//          -Wb,pre_include="ace/pre.h" \
//          -Wb,post_include="ace/post.h" \
//          BiDirPolicy.pidl
//
//   This is from the GIOP 1.2 spec for Bi Dir IIOP.

#ifndef TAO_BIDIR_POLICY_PIDL
#define TAO_BIDIR_POLICY_PIDL

#pragma prefix "omg.org"

#include <Policy.pidl>

// Self contained module for Bi-directional GIOP policy
module BiDirPolicy
{
  typedef unsigned short BidirectionalPolicyValue;
  const BidirectionalPolicyValue NORMAL = 0;
  const BidirectionalPolicyValue BOTH = 1;
  const CORBA::PolicyType BIDIRECTIONAL_POLICY_TYPE = 37;

  // @@ This has ben made local. It was not so in the spec. Any reason
  //    that this shouldn't be a local interface ?
  local interface BidirectionalPolicy : CORBA::Policy
  {
    readonly attribute BidirectionalPolicyValue value;
  };
};

#endif  /* TAO_BIDIR_POLICY_PIDL*/