2 // **** Code generated by the The ACE ORB (TAO) IDL Compiler ****
3 // TAO and the TAO IDL Compiler have been developed by:
4 // Center for Distributed Object Computing
5 // Washington University
8 // http://www.cs.wustl.edu/~schmidt/doc-center.html
10 // Distributed Object Computing Laboratory
11 // University of California at Irvine
14 // http://doc.ece.uci.edu/
16 // Institute for Software Integrated Systems
17 // Vanderbilt University
20 // http://www.isis.vanderbilt.edu/
22 // Information about TAO is available at:
23 // http://www.dre.vanderbilt.edu/~schmidt/TAO.html
25 // TAO_IDL - Generated from
26 // be\be_codegen.cpp:277
29 #include "tao/PI/PolicyFactoryC.h"
31 #include "ace/OS_NS_string.h"
33 // TAO_IDL - Generated from
34 // be\be_visitor_arg_traits.cpp:70
36 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
38 // Arg traits specializations.
44 // TAO_IDL - Generated from
45 // be\be_visitor_interface/interface_cs.cpp:60
47 // Traits specializations for PortableInterceptor::PolicyFactory.
49 PortableInterceptor::PolicyFactory_ptr
50 TAO::Objref_Traits
<PortableInterceptor::PolicyFactory
>::duplicate (
51 PortableInterceptor::PolicyFactory_ptr p
54 return PortableInterceptor::PolicyFactory::_duplicate (p
);
58 TAO::Objref_Traits
<PortableInterceptor::PolicyFactory
>::release (
59 PortableInterceptor::PolicyFactory_ptr p
65 PortableInterceptor::PolicyFactory_ptr
66 TAO::Objref_Traits
<PortableInterceptor::PolicyFactory
>::nil ()
68 return PortableInterceptor::PolicyFactory::_nil ();
72 TAO::Objref_Traits
<PortableInterceptor::PolicyFactory
>::marshal (
73 PortableInterceptor::PolicyFactory_ptr p
,
77 return ::CORBA::Object::marshal (p
, cdr
);
80 PortableInterceptor::PolicyFactory::PolicyFactory ()
83 PortableInterceptor::PolicyFactory::~PolicyFactory ()
86 PortableInterceptor::PolicyFactory_ptr
87 PortableInterceptor::PolicyFactory::_narrow (
88 ::CORBA::Object_ptr _tao_objref
91 return PolicyFactory::_duplicate (
92 dynamic_cast<PolicyFactory_ptr
> (_tao_objref
)
96 PortableInterceptor::PolicyFactory_ptr
97 PortableInterceptor::PolicyFactory::_unchecked_narrow (
98 ::CORBA::Object_ptr _tao_objref
101 return PolicyFactory::_duplicate (
102 dynamic_cast<PolicyFactory_ptr
> (_tao_objref
)
106 PortableInterceptor::PolicyFactory_ptr
107 PortableInterceptor::PolicyFactory::_duplicate (PolicyFactory_ptr obj
)
109 if (! ::CORBA::is_nil (obj
))
118 PortableInterceptor::PolicyFactory::_tao_release (PolicyFactory_ptr obj
)
120 ::CORBA::release (obj
);
124 PortableInterceptor::PolicyFactory::_is_a (const char *value
)
129 "IDL:omg.org/PortableInterceptor/PolicyFactory:1.0"
133 "IDL:omg.org/CORBA/LocalObject:1.0"
137 "IDL:omg.org/CORBA/Object:1.0"
141 return true; // success using local knowledge
149 const char* PortableInterceptor::PolicyFactory::_interface_repository_id () const
151 return "IDL:omg.org/PortableInterceptor/PolicyFactory:1.0";
155 PortableInterceptor::PolicyFactory::marshal (TAO_OutputCDR
&)
162 PortableInterceptor::PolicyFactory::_create_policy (CORBA::PolicyType
)
164 throw ::CORBA::PolicyError (CORBA::BAD_POLICY_TYPE
);
168 TAO_END_VERSIONED_NAMESPACE_DECL