Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Policy.pidl
blobe623bf375376a65ff0f03eb8d8c36a0dcc77c15a
1 /**
2  * @file Policy.pidl
3  *
4  * @brief Pre-compiled IDL source for the CORBA::Policy related
5  * classes.
6  */
8 #ifndef TAO_CORBA_POLICY_PIDL
9 #define TAO_CORBA_POLICY_PIDL
11 #include "tao/UShortSeq.pidl"
12 #include "tao/Current.pidl"
13 #include "tao/Policy_Forward.pidl"
15 #pragma prefix "omg.org"
17 module CORBA
19   typedef short PolicyErrorCode;
20   const PolicyErrorCode BAD_POLICY               = 0;
21   const PolicyErrorCode UNSUPPORTED_POLICY       = 1;
22   const PolicyErrorCode BAD_POLICY_TYPE          = 2;
23   const PolicyErrorCode BAD_POLICY_VALUE         = 3;
24   const PolicyErrorCode UNSUPPORTED_POLICY_VALUE = 4;
26   exception PolicyError
27   {
28     PolicyErrorCode reason;
29   };
31   exception InvalidPolicies
32   {
33     UShortSeq indices;
34   };
36   interface Policy
37   {
38     readonly attribute PolicyType policy_type;
39     Policy copy ();
40     void destroy ();
41   };
44 #pragma prefix ""
46 #endif /* TAO_CORBA_POLICY_PIDL */