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 | 3c867c63e5066951cbfba27be37bc04216dd14a0 (patch) | |
tree | 07036724bdda7df0813dfaee0cd100398073fdca /TAO/tao/IORTable | |
parent | 8f1f37acc1230eaa64bf503926416ba6771976b5 (diff) | |
download | ATCD-3c867c63e5066951cbfba27be37bc04216dd14a0.tar.gz |
ChangeLogTag: Tue Aug 21 13:55:31 2001 Jeff Parsons <parsons@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/IORTable')
-rw-r--r-- | TAO/tao/IORTable/IORTableC.cpp | 36 | ||||
-rw-r--r-- | TAO/tao/IORTable/IORTableC.h | 24 |
2 files changed, 34 insertions, 26 deletions
diff --git a/TAO/tao/IORTable/IORTableC.cpp b/TAO/tao/IORTable/IORTableC.cpp index f223f002426..ee1f01ea354 100644 --- a/TAO/tao/IORTable/IORTableC.cpp +++ b/TAO/tao/IORTable/IORTableC.cpp @@ -177,6 +177,8 @@ CORBA::Exception *IORTable::NotFound::_alloc (void) return retval; } +int IORTable::Table::_tao_class_id = 0; + // ************************************************************* // Operations for class IORTable::Table_var // ************************************************************* @@ -266,25 +268,25 @@ IORTable::Table_var::_retn (void) } ::IORTable::Table_ptr -IORTable::Table_var::duplicate (Table_ptr p) +IORTable::Table_var::tao_duplicate (Table_ptr p) { return ::IORTable::Table::_duplicate (p); } void -IORTable::Table_var::release (Table_ptr p) +IORTable::Table_var::tao_release (Table_ptr p) { CORBA::release (p); } ::IORTable::Table_ptr -IORTable::Table_var::nil (void) +IORTable::Table_var::tao_nil (void) { return ::IORTable::Table::_nil (); } ::IORTable::Table_ptr -IORTable::Table_var::narrow ( +IORTable::Table_var::tao_narrow ( CORBA::Object *p, CORBA::Environment &ACE_TRY_ENV ) @@ -293,7 +295,7 @@ IORTable::Table_var::narrow ( } CORBA::Object * -IORTable::Table_var::upcast (void *src) +IORTable::Table_var::tao_upcast (void *src) { Table **tmp = ACE_static_cast (Table **, src); @@ -393,7 +395,7 @@ IORTable::Table_ptr IORTable::Table::_unchecked_narrow ( ACE_reinterpret_cast ( ptr_arith_t, - &Table::_narrow + &Table::_tao_class_id ) ) ); @@ -412,9 +414,9 @@ void *IORTable::Table::_tao_QueryInterface (ptr_arith_t type) void *retv = 0; if (type == ACE_reinterpret_cast (ptr_arith_t, - &ACE_NESTED_CLASS (::IORTable, Table)::_narrow)) + &ACE_NESTED_CLASS (::IORTable, Table)::_tao_class_id)) retv = ACE_reinterpret_cast (void*, 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)); @@ -428,6 +430,8 @@ const char* IORTable::Table::_interface_repository_id (void) const return "IDL:IORTable/Table:1.0"; } +int IORTable::Locator::_tao_class_id = 0; + // ************************************************************* // Operations for class IORTable::Locator_var // ************************************************************* @@ -517,25 +521,25 @@ IORTable::Locator_var::_retn (void) } ::IORTable::Locator_ptr -IORTable::Locator_var::duplicate (Locator_ptr p) +IORTable::Locator_var::tao_duplicate (Locator_ptr p) { return ::IORTable::Locator::_duplicate (p); } void -IORTable::Locator_var::release (Locator_ptr p) +IORTable::Locator_var::tao_release (Locator_ptr p) { CORBA::release (p); } ::IORTable::Locator_ptr -IORTable::Locator_var::nil (void) +IORTable::Locator_var::tao_nil (void) { return ::IORTable::Locator::_nil (); } ::IORTable::Locator_ptr -IORTable::Locator_var::narrow ( +IORTable::Locator_var::tao_narrow ( CORBA::Object *p, CORBA::Environment &ACE_TRY_ENV ) @@ -544,7 +548,7 @@ IORTable::Locator_var::narrow ( } CORBA::Object * -IORTable::Locator_var::upcast (void *src) +IORTable::Locator_var::tao_upcast (void *src) { Locator **tmp = ACE_static_cast (Locator **, src); @@ -644,7 +648,7 @@ IORTable::Locator_ptr IORTable::Locator::_unchecked_narrow ( ACE_reinterpret_cast ( ptr_arith_t, - &Locator::_narrow + &Locator::_tao_class_id ) ) ); @@ -663,9 +667,9 @@ void *IORTable::Locator::_tao_QueryInterface (ptr_arith_t type) void *retv = 0; if (type == ACE_reinterpret_cast (ptr_arith_t, - &ACE_NESTED_CLASS (::IORTable, Locator)::_narrow)) + &ACE_NESTED_CLASS (::IORTable, Locator)::_tao_class_id)) retv = ACE_reinterpret_cast (void*, 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/IORTable/IORTableC.h b/TAO/tao/IORTable/IORTableC.h index 5f8846e7722..cec61dcbbcd 100644 --- a/TAO/tao/IORTable/IORTableC.h +++ b/TAO/tao/IORTable/IORTableC.h @@ -92,11 +92,11 @@ TAO_NAMESPACE IORTable // Hooks used by template sequence and object manager classes // for non-defined forward declared interfaces. - static Locator_ptr duplicate (Locator_ptr); - static void release (Locator_ptr); - static Locator_ptr nil (void); - static Locator_ptr narrow (CORBA::Object *, CORBA::Environment &); - static CORBA::Object * upcast (void *); + static Locator_ptr tao_duplicate (Locator_ptr); + static void tao_release (Locator_ptr); + static Locator_ptr tao_nil (void); + static Locator_ptr tao_narrow (CORBA::Object *, CORBA::Environment &); + static CORBA::Object * tao_upcast (void *); private: Locator_ptr ptr_; @@ -254,11 +254,11 @@ TAO_NAMESPACE IORTable // Hooks used by template sequence and object manager classes // for non-defined forward declared interfaces. - static Table_ptr duplicate (Table_ptr); - static void release (Table_ptr); - static Table_ptr nil (void); - static Table_ptr narrow (CORBA::Object *, CORBA::Environment &); - static CORBA::Object * upcast (void *); + static Table_ptr tao_duplicate (Table_ptr); + static void tao_release (Table_ptr); + static Table_ptr tao_nil (void); + static Table_ptr tao_narrow (CORBA::Object *, CORBA::Environment &); + static CORBA::Object * tao_upcast (void *); private: Table_ptr ptr_; @@ -306,6 +306,8 @@ class TAO_IORTable_Export Table : public virtual CORBA_Object typedef Table_var _var_type; #endif /* ! __GNUC__ || g++ >= 2.8 */ + static int _tao_class_id; + // the static operations static Table_ptr _duplicate (Table_ptr obj); static Table_ptr _narrow ( @@ -391,6 +393,8 @@ class TAO_IORTable_Export Locator : public virtual CORBA_Object typedef Locator_var _var_type; #endif /* ! __GNUC__ || g++ >= 2.8 */ + static int _tao_class_id; + // the static operations static Locator_ptr _duplicate (Locator_ptr obj); static Locator_ptr _narrow ( |