summaryrefslogtreecommitdiff
path: root/TAO/tao/PI/PolicyFactoryC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PI/PolicyFactoryC.cpp')
-rw-r--r--TAO/tao/PI/PolicyFactoryC.cpp62
1 files changed, 41 insertions, 21 deletions
diff --git a/TAO/tao/PI/PolicyFactoryC.cpp b/TAO/tao/PI/PolicyFactoryC.cpp
index 49c458fd6be..9e58888ac22 100644
--- a/TAO/tao/PI/PolicyFactoryC.cpp
+++ b/TAO/tao/PI/PolicyFactoryC.cpp
@@ -26,17 +26,19 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// .\be\be_codegen.cpp:291
-#include "tao/PI/PolicyFactoryC.h"
+#include "PolicyFactoryC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
-// TAO_IDL - Generated from
-// be\be_visitor_arg_traits.cpp:70
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// .\be\be_visitor_arg_traits.cpp:69
// Arg traits specializations.
namespace TAO
@@ -45,7 +47,7 @@ namespace TAO
// TAO_IDL - Generated from
-// be\be_visitor_interface/interface_cs.cpp:60
+// c:\ace\latest\ace_wrappers\tao\tao_idl\be\be_visitor_interface/interface_cs.cpp:60
// Traits specializations for PortableInterceptor::PolicyFactory.
@@ -71,13 +73,13 @@ TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::nil (void)
return PortableInterceptor::PolicyFactory::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::marshal (
PortableInterceptor::PolicyFactory_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
PortableInterceptor::PolicyFactory::PolicyFactory (void)
@@ -86,26 +88,46 @@ PortableInterceptor::PolicyFactory::PolicyFactory (void)
PortableInterceptor::PolicyFactory::~PolicyFactory (void)
{}
+void
+PortableInterceptor::PolicyFactory::_tao_any_destructor (void *_tao_void_pointer)
+{
+ PolicyFactory *_tao_tmp_pointer =
+ static_cast<PolicyFactory *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
PortableInterceptor::PolicyFactory_ptr
PortableInterceptor::PolicyFactory::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
- return PolicyFactory::_duplicate (
- dynamic_cast<PolicyFactory_ptr> (_tao_objref)
- );
+ if (CORBA::is_nil (_tao_objref))
+ {
+ return PolicyFactory::_nil ();
+ }
+
+ PolicyFactory_ptr proxy =
+ dynamic_cast<PolicyFactory_ptr> (_tao_objref);
+
+ return PolicyFactory::_duplicate (proxy);
}
PortableInterceptor::PolicyFactory_ptr
PortableInterceptor::PolicyFactory::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
- return PolicyFactory::_duplicate (
- dynamic_cast<PolicyFactory_ptr> (_tao_objref)
- );
+ if (CORBA::is_nil (_tao_objref))
+ {
+ return PolicyFactory::_nil ();
+ }
+
+ PolicyFactory_ptr proxy =
+ dynamic_cast<PolicyFactory_ptr> (_tao_objref);
+
+ return PolicyFactory::_duplicate (proxy);
}
PortableInterceptor::PolicyFactory_ptr
@@ -115,7 +137,7 @@ PortableInterceptor::PolicyFactory::_duplicate (PolicyFactory_ptr obj)
{
obj->_add_ref ();
}
-
+
return obj;
}
@@ -125,7 +147,7 @@ PortableInterceptor::PolicyFactory::_tao_release (PolicyFactory_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::PolicyFactory::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -159,7 +181,7 @@ const char* PortableInterceptor::PolicyFactory::_interface_repository_id (void)
return "IDL:omg.org/PortableInterceptor/PolicyFactory:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::PolicyFactory::marshal (TAO_OutputCDR &)
{
return false;
@@ -176,5 +198,3 @@ PortableInterceptor::PolicyFactory::_create_policy (CORBA::PolicyType
CORBA::Policy::_nil ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL