diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-12 14:54:30 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-12 14:54:30 +0000 |
commit | c600d247096bfeefc6bf98e9de349c16d42ae7b3 (patch) | |
tree | 8d4afea22101d64ee78209179a1261d1d44fcad1 /TAO/tao/ORB_Core.h | |
parent | 1c9023bd7db3dc52534ef9b828967e0fc250aeae (diff) | |
download | ATCD-c600d247096bfeefc6bf98e9de349c16d42ae7b3.tar.gz |
ChangeLogTag:Mon Apr 12 09:52:58 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/ORB_Core.h')
-rw-r--r-- | TAO/tao/ORB_Core.h | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/TAO/tao/ORB_Core.h b/TAO/tao/ORB_Core.h index 8f72d2678dd..15aa540c1bf 100644 --- a/TAO/tao/ORB_Core.h +++ b/TAO/tao/ORB_Core.h @@ -24,10 +24,9 @@ #include "tao/Environment.h" #include "tao/IIOP_Connector.h" #include "tao/IIOP_Acceptor.h" -#include "tao/POAC.h" #include "tao/POA.h" -#include "tao/POAManager.h" -#include "tao/Object_Adapter.h" + +#include "tao/Policy_Manager.h" #include "tao/params.h" @@ -301,7 +300,26 @@ public: // usually created on the stack, but, the spec allows their creation // on the heap and/or as class members; we need to investigate the // tradeoffs and take a decision. - // + +#if defined (TAO_HAS_CORBA_MESSAGING) + TAO_Policy_Manager *policy_manager (void); + // Return the Policy_Manager for this ORB. + + TAO_Policy_Current *policy_current (void) const; + void policy_current (TAO_Policy_Current *); + // Accesors to the policy current, this object should be kept in TSS + // storage. + // The POA has to reset the policy current object on every upcall. + + CORBA::Policy_ptr get_default_policy ( + CORBA::PolicyType policy, + CORBA::Environment &ACE_TRY_ENV = + CORBA::default_environment ()); + // Accesor to obtain the default policy for a particular policy + // type. + // If there is no default policy it returns CORBA::Policy::_nil () + +#endif /* TAO_HAS_CORBA_MESSAGING */ protected: int set_endpoint (int dotted_decimal_addresses, @@ -415,6 +433,22 @@ protected: CORBA_Environment tss_environment_; // If the user (or library) provides no environment the ORB_Core // still holds one. + +#if defined (TAO_HAS_CORBA_MESSAGING) + TAO_Policy_Manager policy_manager_; + // The Policy_Manager for this ORB. + + TAO_Policy_Current initial_policy_current_; + // The initial PolicyCurrent for this thread. Should be a TSS + // resource. + + TAO_Policy_Current* policy_current_; + // This pointer is reset by the POA on each upcall. + + TAO_Policy_Manager_Impl default_policies_; + // The default policies. +#endif /* TAO_HAS_CORBA_MESSAGING */ + }; class TAO_Default_Reactor : public ACE_Reactor |