diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-08-21 19:00:46 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-08-21 19:00:46 +0000 |
commit | 169d25d47720e430696f548b3475bcf6b4b9689c (patch) | |
tree | 07036724bdda7df0813dfaee0cd100398073fdca /TAO/tao/BiDir_GIOP | |
parent | 91bbc44a1ceab49fcc720f8d15cf0f0ff2a14837 (diff) | |
download | ATCD-169d25d47720e430696f548b3475bcf6b4b9689c.tar.gz |
ChangeLogTag: Tue Aug 21 13:55:31 2001 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/BiDir_GIOP')
-rw-r--r-- | TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp | 21 | ||||
-rw-r--r-- | TAO/tao/BiDir_GIOP/BiDirPolicyC.h | 12 |
2 files changed, 19 insertions, 14 deletions
diff --git a/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp b/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp index d7e32b3f20d..97c37a96607 100644 --- a/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp +++ b/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp @@ -83,6 +83,9 @@ TAO_NAMESPACE_TYPE (const CORBA::ULong) TAO_NAMESPACE_BEGIN (BiDirPolicy) TAO_NAMESPACE_DEFINE (const CORBA::ULong, BIDIRECTIONAL_POLICY_TYPE, 37U) TAO_NAMESPACE_END + +int BiDirPolicy::BidirectionalPolicy::_tao_class_id = 0; + // ************************************************************* // Operations for class BiDirPolicy::BidirectionalPolicy_var // ************************************************************* @@ -172,25 +175,25 @@ BiDirPolicy::BidirectionalPolicy_var::_retn (void) } ::BiDirPolicy::BidirectionalPolicy_ptr -BiDirPolicy::BidirectionalPolicy_var::duplicate (BidirectionalPolicy_ptr p) +BiDirPolicy::BidirectionalPolicy_var::tao_duplicate (BidirectionalPolicy_ptr p) { return ::BiDirPolicy::BidirectionalPolicy::_duplicate (p); } void -BiDirPolicy::BidirectionalPolicy_var::release (BidirectionalPolicy_ptr p) +BiDirPolicy::BidirectionalPolicy_var::tao_release (BidirectionalPolicy_ptr p) { CORBA::release (p); } ::BiDirPolicy::BidirectionalPolicy_ptr -BiDirPolicy::BidirectionalPolicy_var::nil (void) +BiDirPolicy::BidirectionalPolicy_var::tao_nil (void) { return ::BiDirPolicy::BidirectionalPolicy::_nil (); } ::BiDirPolicy::BidirectionalPolicy_ptr -BiDirPolicy::BidirectionalPolicy_var::narrow ( +BiDirPolicy::BidirectionalPolicy_var::tao_narrow ( CORBA::Object *p, CORBA::Environment &ACE_TRY_ENV ) @@ -199,7 +202,7 @@ BiDirPolicy::BidirectionalPolicy_var::narrow ( } CORBA::Object * -BiDirPolicy::BidirectionalPolicy_var::upcast (void *src) +BiDirPolicy::BidirectionalPolicy_var::tao_upcast (void *src) { BidirectionalPolicy **tmp = ACE_static_cast (BidirectionalPolicy **, src); @@ -299,7 +302,7 @@ BiDirPolicy::BidirectionalPolicy_ptr BiDirPolicy::BidirectionalPolicy::_unchecke ACE_reinterpret_cast ( ptr_arith_t, - &BidirectionalPolicy::_narrow + &BidirectionalPolicy::_tao_class_id ) ) ); @@ -318,11 +321,11 @@ void *BiDirPolicy::BidirectionalPolicy::_tao_QueryInterface (ptr_arith_t type) void *retv = 0; if (type == ACE_reinterpret_cast (ptr_arith_t, - &ACE_NESTED_CLASS (::BiDirPolicy, BidirectionalPolicy)::_narrow)) + &ACE_NESTED_CLASS (::BiDirPolicy, BidirectionalPolicy)::_tao_class_id)) retv = ACE_reinterpret_cast (void*, this); else if (type == ACE_reinterpret_cast (ptr_arith_t, - &::CORBA::Policy::_narrow)) + &::CORBA::Policy::_tao_class_id)) retv = ACE_reinterpret_cast ( void *, @@ -332,7 +335,7 @@ void *BiDirPolicy::BidirectionalPolicy::_tao_QueryInterface (ptr_arith_t type) this ) ); - else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_narrow)) + else if (type == ACE_reinterpret_cast (ptr_arith_t, &CORBA::Object::_tao_class_id)) retv = ACE_reinterpret_cast (void *, ACE_static_cast (CORBA::Object_ptr, this)); diff --git a/TAO/tao/BiDir_GIOP/BiDirPolicyC.h b/TAO/tao/BiDir_GIOP/BiDirPolicyC.h index eb77ed7be55..44fae6bfc07 100644 --- a/TAO/tao/BiDir_GIOP/BiDirPolicyC.h +++ b/TAO/tao/BiDir_GIOP/BiDirPolicyC.h @@ -106,11 +106,11 @@ TAO_NAMESPACE BiDirPolicy // Hooks used by template sequence and object manager classes // for non-defined forward declared interfaces. - static BidirectionalPolicy_ptr duplicate (BidirectionalPolicy_ptr); - static void release (BidirectionalPolicy_ptr); - static BidirectionalPolicy_ptr nil (void); - static BidirectionalPolicy_ptr narrow (CORBA::Object *, CORBA::Environment &); - static CORBA::Object * upcast (void *); + static BidirectionalPolicy_ptr tao_duplicate (BidirectionalPolicy_ptr); + static void tao_release (BidirectionalPolicy_ptr); + static BidirectionalPolicy_ptr tao_nil (void); + static BidirectionalPolicy_ptr tao_narrow (CORBA::Object *, CORBA::Environment &); + static CORBA::Object * tao_upcast (void *); private: BidirectionalPolicy_ptr ptr_; @@ -158,6 +158,8 @@ class TAO_BiDirGIOP_Export BidirectionalPolicy: public virtual CORBA::Policy typedef BidirectionalPolicy_var _var_type; #endif /* ! __GNUC__ || g++ >= 2.8 */ + static int _tao_class_id; + // the static operations static BidirectionalPolicy_ptr _duplicate (BidirectionalPolicy_ptr obj); static BidirectionalPolicy_ptr _narrow ( |