summaryrefslogtreecommitdiff
path: root/TAO/tao/IORTable/IORTableC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/IORTable/IORTableC.cpp')
-rw-r--r--TAO/tao/IORTable/IORTableC.cpp447
1 files changed, 229 insertions, 218 deletions
diff --git a/TAO/tao/IORTable/IORTableC.cpp b/TAO/tao/IORTable/IORTableC.cpp
index b7baa599fcc..eb1a86cb24e 100644
--- a/TAO/tao/IORTable/IORTableC.cpp
+++ b/TAO/tao/IORTable/IORTableC.cpp
@@ -15,25 +15,27 @@
// Irvine, CA
// USA
// http://doc.ece.uci.edu/
+// and
+// Institute for Software Integrated Systems
+// Vanderbilt University
+// Nashville, TN
+// USA
+// http://www.isis.vanderbilt.edu/
//
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:314
+// be/be_codegen.cpp:301
#include "IORTableC.h"
#include "tao/Stub.h"
-#include "tao/Invocation.h"
-#include "tao/PortableInterceptor.h"
-
-#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/RequestInfo_Util.h"
-#include "tao/ClientRequestInfo_i.h"
-#include "tao/ClientInterceptorAdapter.h"
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
-
+#include "tao/Invocation_Adapter.h"
+#include "tao/Object_T.h"
+#include "tao/Basic_Arguments.h"
+#include "tao/Object_Argument_T.h"
+#include "tao/UB_String_Arguments.h"
#if defined (__BORLANDC__)
#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
@@ -43,8 +45,50 @@
#include "IORTableC.i"
#endif /* !defined INLINE */
+// TAO_IDL - Generated from
+// be/be_visitor_arg_traits.cpp:59
+
+// Arg traits specializations.
+namespace TAO
+{
+
+#if !defined (_IORTABLE_LOCATOR__ARG_TRAITS_CS_)
+#define _IORTABLE_LOCATOR__ARG_TRAITS_CS_
+
+ ACE_TEMPLATE_SPECIALIZATION
+ class TAO_IORTable_Export Arg_Traits<IORTable::Locator>
+ : public
+ Object_Arg_Traits_T<
+ IORTable::Locator_ptr,
+ IORTable::Locator_var,
+ IORTable::Locator_out,
+ TAO::Objref_Traits<IORTable::Locator>
+ >
+ {
+ };
+
+#endif /* end #if !defined */
+
+#if !defined (_IORTABLE_LOCATOR__ARG_TRAITS_CS_)
+#define _IORTABLE_LOCATOR__ARG_TRAITS_CS_
+
+ ACE_TEMPLATE_SPECIALIZATION
+ class TAO_IORTable_Export Arg_Traits<IORTable::Locator>
+ : public
+ Object_Arg_Traits_T<
+ IORTable::Locator_ptr,
+ IORTable::Locator_var,
+ IORTable::Locator_out,
+ TAO::Objref_Traits<IORTable::Locator>
+ >
+ {
+ };
+
+#endif /* end #if !defined */
+};
+
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_cs.cpp:63
+// be/be_visitor_exception/exception_cs.cpp:63
IORTable::AlreadyBound::AlreadyBound (void)
: CORBA::UserException (
@@ -139,7 +183,7 @@ void IORTable::AlreadyBound::_tao_decode (
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_exception/exception_cs.cpp:63
+// be/be_visitor_exception/exception_cs.cpp:63
IORTable::NotFound::NotFound (void)
: CORBA::UserException (
@@ -234,12 +278,12 @@ void IORTable::NotFound::_tao_decode (
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:61
+// be/be_visitor_interface/interface_cs.cpp:60
-int IORTable::Table::_tao_class_id = 0;
+// Traits specializations for IORTable::Table.
IORTable::Table_ptr
-IORTable::tao_Table_life::tao_duplicate (
+TAO::Objref_Traits<IORTable::Table>::tao_duplicate (
IORTable::Table_ptr p
)
{
@@ -247,7 +291,7 @@ IORTable::tao_Table_life::tao_duplicate (
}
void
-IORTable::tao_Table_life::tao_release (
+TAO::Objref_Traits<IORTable::Table>::tao_release (
IORTable::Table_ptr p
)
{
@@ -255,67 +299,25 @@ IORTable::tao_Table_life::tao_release (
}
IORTable::Table_ptr
-IORTable::tao_Table_life::tao_nil (
- void
- )
+TAO::Objref_Traits<IORTable::Table>::tao_nil (void)
{
return IORTable::Table::_nil ();
}
CORBA::Boolean
-IORTable::tao_Table_life::tao_marshal (
+TAO::Objref_Traits<IORTable::Table>::tao_marshal (
IORTable::Table_ptr p,
- TAO_OutputCDR &cdr
+ TAO_OutputCDR & cdr
)
{
return p->marshal (cdr);
}
-IORTable::Table_ptr
-IORTable::tao_Table_cast::tao_narrow (
- CORBA::Object *p
- ACE_ENV_ARG_DECL
- )
-{
- return IORTable::Table::_narrow (p ACE_ENV_ARG_PARAMETER);
-}
-
-CORBA::Object *
-IORTable::tao_Table_cast::tao_upcast (
- void *src
- )
-{
- IORTable::Table **tmp =
- ACE_static_cast (IORTable::Table **, src);
- return *tmp;
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
- template class
- TAO_Objref_Var_T<
- IORTable::Table,
- IORTable::tao_Table_life
- >;
- template class
- TAO_Objref_Out_T<
- IORTable::Table,
- IORTable::tao_Table_life
- >;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-# pragma instantiate \
- TAO_Objref_Var_T< \
- IORTable::Table, \
- IORTable::tao_Table_life \
- >
-# pragma instantiate \
- TAO_Objref_Out_T< \
- IORTable::Table, \
- IORTable::tao_Table_life \
- >
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:232
+// Function pointer for collocation factory initialization.
+TAO::Collocation_Proxy_Broker *
+(*IORTable__TAO_Table_Proxy_Broker_Factory_function_pointer) (
+ CORBA::Object_ptr obj
+ ) = 0;
IORTable::Table::Table (void)
{}
@@ -325,34 +327,14 @@ IORTable::Table::~Table (void)
IORTable::Table_ptr
IORTable::Table::_narrow (
- CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL
- )
-{
- return Table::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER);
-}
-
-IORTable::Table_ptr
-IORTable::Table::_unchecked_narrow (
- CORBA::Object_ptr obj
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
- if (CORBA::is_nil (obj))
- {
- return Table::_nil ();
- }
-
- return
- ACE_reinterpret_cast (
- Table_ptr,
- obj->_tao_QueryInterface (
- ACE_reinterpret_cast (
- ptrdiff_t,
- &Table::_tao_class_id
- )
- )
- );
+ Table_ptr proxy =
+ dynamic_cast<Table_ptr> (_tao_objref);
+ proxy->_add_ref ();
+ return proxy;
}
IORTable::Table_ptr
@@ -366,35 +348,33 @@ IORTable::Table::_duplicate (Table_ptr obj)
return obj;
}
-void *IORTable::Table::_tao_QueryInterface (ptrdiff_t type)
+CORBA::Boolean
+IORTable::Table::_is_a (
+ const char *value
+ ACE_ENV_ARG_DECL_NOT_USED
+ )
{
- void *retv = 0;
-
- if (type == ACE_reinterpret_cast (
- ptrdiff_t,
- &ACE_NESTED_CLASS (::IORTable, Table)::_tao_class_id)
- )
+ if (
+ !ACE_OS::strcmp (
+ (char *)value,
+ "IDL:IORTable/Table:1.0"
+ ) ||
+ !ACE_OS::strcmp (
+ (char *)value,
+ "IDL:omg.org/CORBA/LocalObject:1.0"
+ ) ||
+ !ACE_OS::strcmp (
+ (char *)value,
+ "IDL:omg.org/CORBA/Object:1.0"
+ )
+ )
{
- retv = ACE_reinterpret_cast (void*, this);
+ return 1; // success using local knowledge
}
- else if (type == ACE_reinterpret_cast (
- ptrdiff_t,
- &CORBA::Object::_tao_class_id)
- )
- {
- retv =
- ACE_reinterpret_cast (
- void *,
- ACE_static_cast (CORBA::Object_ptr, this)
- );
- }
-
- if (retv != 0)
+ else
{
- this->_add_ref ();
+ return 0;
}
-
- return retv;
}
const char* IORTable::Table::_interface_repository_id (void) const
@@ -409,12 +389,12 @@ IORTable::Table::marshal (TAO_OutputCDR &)
}
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:61
+// be/be_visitor_interface/interface_cs.cpp:60
-int IORTable::Locator::_tao_class_id = 0;
+// Traits specializations for IORTable::Locator.
IORTable::Locator_ptr
-IORTable::tao_Locator_life::tao_duplicate (
+TAO::Objref_Traits<IORTable::Locator>::tao_duplicate (
IORTable::Locator_ptr p
)
{
@@ -422,7 +402,7 @@ IORTable::tao_Locator_life::tao_duplicate (
}
void
-IORTable::tao_Locator_life::tao_release (
+TAO::Objref_Traits<IORTable::Locator>::tao_release (
IORTable::Locator_ptr p
)
{
@@ -430,67 +410,25 @@ IORTable::tao_Locator_life::tao_release (
}
IORTable::Locator_ptr
-IORTable::tao_Locator_life::tao_nil (
- void
- )
+TAO::Objref_Traits<IORTable::Locator>::tao_nil (void)
{
return IORTable::Locator::_nil ();
}
CORBA::Boolean
-IORTable::tao_Locator_life::tao_marshal (
+TAO::Objref_Traits<IORTable::Locator>::tao_marshal (
IORTable::Locator_ptr p,
- TAO_OutputCDR &cdr
+ TAO_OutputCDR & cdr
)
{
return p->marshal (cdr);
}
-IORTable::Locator_ptr
-IORTable::tao_Locator_cast::tao_narrow (
- CORBA::Object *p
- ACE_ENV_ARG_DECL
- )
-{
- return IORTable::Locator::_narrow (p ACE_ENV_ARG_PARAMETER);
-}
-
-CORBA::Object *
-IORTable::tao_Locator_cast::tao_upcast (
- void *src
- )
-{
- IORTable::Locator **tmp =
- ACE_static_cast (IORTable::Locator **, src);
- return *tmp;
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
- template class
- TAO_Objref_Var_T<
- IORTable::Locator,
- IORTable::tao_Locator_life
- >;
- template class
- TAO_Objref_Out_T<
- IORTable::Locator,
- IORTable::tao_Locator_life
- >;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-# pragma instantiate \
- TAO_Objref_Var_T< \
- IORTable::Locator, \
- IORTable::tao_Locator_life \
- >
-# pragma instantiate \
- TAO_Objref_Out_T< \
- IORTable::Locator, \
- IORTable::tao_Locator_life \
- >
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:232
+// Function pointer for collocation factory initialization.
+TAO::Collocation_Proxy_Broker *
+(*IORTable__TAO_Locator_Proxy_Broker_Factory_function_pointer) (
+ CORBA::Object_ptr obj
+ ) = 0;
IORTable::Locator::Locator (void)
{}
@@ -500,34 +438,14 @@ IORTable::Locator::~Locator (void)
IORTable::Locator_ptr
IORTable::Locator::_narrow (
- CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL
- )
-{
- return Locator::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER);
-}
-
-IORTable::Locator_ptr
-IORTable::Locator::_unchecked_narrow (
- CORBA::Object_ptr obj
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
- if (CORBA::is_nil (obj))
- {
- return Locator::_nil ();
- }
-
- return
- ACE_reinterpret_cast (
- Locator_ptr,
- obj->_tao_QueryInterface (
- ACE_reinterpret_cast (
- ptrdiff_t,
- &Locator::_tao_class_id
- )
- )
- );
+ Locator_ptr proxy =
+ dynamic_cast<Locator_ptr> (_tao_objref);
+ proxy->_add_ref ();
+ return proxy;
}
IORTable::Locator_ptr
@@ -541,35 +459,33 @@ IORTable::Locator::_duplicate (Locator_ptr obj)
return obj;
}
-void *IORTable::Locator::_tao_QueryInterface (ptrdiff_t type)
+CORBA::Boolean
+IORTable::Locator::_is_a (
+ const char *value
+ ACE_ENV_ARG_DECL_NOT_USED
+ )
{
- void *retv = 0;
-
- if (type == ACE_reinterpret_cast (
- ptrdiff_t,
- &ACE_NESTED_CLASS (::IORTable, Locator)::_tao_class_id)
- )
+ if (
+ !ACE_OS::strcmp (
+ (char *)value,
+ "IDL:IORTable/Locator:1.0"
+ ) ||
+ !ACE_OS::strcmp (
+ (char *)value,
+ "IDL:omg.org/CORBA/LocalObject:1.0"
+ ) ||
+ !ACE_OS::strcmp (
+ (char *)value,
+ "IDL:omg.org/CORBA/Object:1.0"
+ )
+ )
{
- retv = ACE_reinterpret_cast (void*, this);
+ return 1; // success using local knowledge
}
- else if (type == ACE_reinterpret_cast (
- ptrdiff_t,
- &CORBA::Object::_tao_class_id)
- )
- {
- retv =
- ACE_reinterpret_cast (
- void *,
- ACE_static_cast (CORBA::Object_ptr, this)
- );
- }
-
- if (retv != 0)
+ else
{
- this->_add_ref ();
+ return 0;
}
-
- return retv;
}
const char* IORTable::Locator::_interface_repository_id (void) const
@@ -583,3 +499,98 @@ IORTable::Locator::marshal (TAO_OutputCDR &)
return 0;
}
+// TAO_IDL - Generated from
+// be/be_visitor_root/root.cpp:1703
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+
+#if !defined (_IORTABLE_LOCATOR__ARG_TRAITS_TMPLINST_CS_)
+#define _IORTABLE_LOCATOR__ARG_TRAITS_TMPLINST_CS_
+
+ template class TAO::Arg_Traits<IORTable::Locator>;
+
+ template class
+ TAO::Object_Arg_Traits_T<
+ IORTable::Locator_ptr,
+ IORTable::Locator_var,
+ IORTable::Locator_out
+ >;
+
+#endif /* end #if !defined */
+
+ template class
+ TAO_Objref_Var_T<
+ IORTable::Locator,
+ TAO::Objref_Traits<IORTable::Locator>
+ >;
+
+ template class
+ TAO_Objref_Out_T<
+ IORTable::Locator,
+ TAO::Objref_Traits<IORTable::Locator>
+ >;
+
+ template class
+ TAO::In_Object_Argument_T<
+ IORTable::Locator_ptr
+ >;
+
+ template class
+ TAO_Objref_Var_T<
+ IORTable::Table,
+ TAO::Objref_Traits<IORTable::Table>
+ >;
+
+ template class
+ TAO_Objref_Out_T<
+ IORTable::Table,
+ TAO::Objref_Traits<IORTable::Table>
+ >;
+
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+
+#if !defined (_IORTABLE_LOCATOR__ARG_TRAITS_TMPLINST_CS_)
+#define _IORTABLE_LOCATOR__ARG_TRAITS_TMPLINST_CS_
+
+# pragma instantiate TAO::Arg_Traits<IORTable::Locator>
+
+# pragma instantiate \
+ TAO::Object_Arg_Traits_T< \
+ IORTable::Locator_ptr, \
+ IORTable::Locator_var, \
+ IORTable::Locator_out \
+ >
+
+#endif /* end #if !defined */
+
+# pragma instantiate \
+ TAO_Objref_Var_T< \
+ IORTable::Locator, \
+ TAO::Objref_Traits<IORTable::Locator> \
+ >
+
+# pragma instantiate \
+ TAO_Objref_Out_T< \
+ IORTable::Locator, \
+ TAO::Objref_Traits<IORTable::Locator> \
+ >
+
+# pragma instantiate \
+ TAO::In_Object_Argument_T< \
+ IORTable::Locator_ptr \
+ >
+
+# pragma instantiate \
+ TAO_Objref_Var_T< \
+ IORTable::Table, \
+ TAO::Objref_Traits<IORTable::Table> \
+ >
+
+# pragma instantiate \
+ TAO_Objref_Out_T< \
+ IORTable::Table, \
+ TAO::Objref_Traits<IORTable::Table> \
+ >
+
+#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+