#include <PolicyFactoryC.h>
Inheritance diagram for PortableInterceptor::PolicyFactory:
Public Types | |
typedef PolicyFactory_ptr | _ptr_type |
typedef PolicyFactory_var | _var_type |
Public Member Functions | |
virtual ::CORBA::Policy_ptr | create_policy (::CORBA::PolicyType type, const ::CORBA::Any &value)=0 |
virtual ::CORBA::Policy_ptr | _create_policy (CORBA::PolicyType type) |
virtual ::CORBA::Boolean | _is_a (const char *type_id) |
virtual const char * | _interface_repository_id (void) const |
virtual ::CORBA::Boolean | marshal (TAO_OutputCDR &cdr) |
Static Public Member Functions | |
static PolicyFactory_ptr | _duplicate (PolicyFactory_ptr obj) |
static void | _tao_release (PolicyFactory_ptr obj) |
static PolicyFactory_ptr | _narrow (::CORBA::Object_ptr obj) |
static PolicyFactory_ptr | _unchecked_narrow (::CORBA::Object_ptr obj) |
static PolicyFactory_ptr | _nil (void) |
Protected Member Functions | |
PolicyFactory (void) | |
virtual | ~PolicyFactory (void) |
Private Member Functions | |
PolicyFactory (const PolicyFactory &) | |
void | operator= (const PolicyFactory &) |
Definition at line 95 of file PolicyFactoryC.h.
PortableInterceptor::PolicyFactory::PolicyFactory | ( | void | ) | [protected] |
PortableInterceptor::PolicyFactory::~PolicyFactory | ( | void | ) | [protected, virtual] |
PortableInterceptor::PolicyFactory::PolicyFactory | ( | const PolicyFactory & | ) | [private] |
CORBA::Policy_ptr PortableInterceptor::PolicyFactory::_create_policy | ( | CORBA::PolicyType | type | ) |
Definition at line 165 of file PolicyFactoryC.cpp.
References CORBA::BAD_POLICY_TYPE.
Referenced by TAO_PolicyFactory_Registry::_create_policy().
00166 { 00167 throw ::CORBA::PolicyError (CORBA::BAD_POLICY_TYPE); 00168 }
PortableInterceptor::PolicyFactory_ptr PortableInterceptor::PolicyFactory::_duplicate | ( | PolicyFactory_ptr | obj | ) | [static] |
Definition at line 110 of file PolicyFactoryC.cpp.
References CORBA::Object::_add_ref(), and CORBA::is_nil().
Referenced by _narrow(), _unchecked_narrow(), and TAO_PolicyFactory_Registry::register_policy_factory().
00111 { 00112 if (! ::CORBA::is_nil (obj)) 00113 { 00114 obj->_add_ref (); 00115 } 00116 00117 return obj; 00118 }
const char * PortableInterceptor::PolicyFactory::_interface_repository_id | ( | void | ) | const [virtual] |
CORBA::Boolean PortableInterceptor::PolicyFactory::_is_a | ( | const char * | type_id | ) | [virtual] |
Reimplemented from CORBA::Object.
Definition at line 127 of file PolicyFactoryC.cpp.
References ACE_OS::strcmp().
00128 { 00129 if ( 00130 !ACE_OS::strcmp ( 00131 value, 00132 "IDL:omg.org/PortableInterceptor/PolicyFactory:1.0" 00133 ) || 00134 !ACE_OS::strcmp ( 00135 value, 00136 "IDL:omg.org/CORBA/LocalObject:1.0" 00137 ) || 00138 !ACE_OS::strcmp ( 00139 value, 00140 "IDL:omg.org/CORBA/Object:1.0" 00141 ) 00142 ) 00143 { 00144 return true; // success using local knowledge 00145 } 00146 else 00147 { 00148 return false; 00149 } 00150 }
PortableInterceptor::PolicyFactory_ptr PortableInterceptor::PolicyFactory::_narrow | ( | ::CORBA::Object_ptr | obj | ) | [static] |
Definition at line 90 of file PolicyFactoryC.cpp.
References _duplicate().
00093 { 00094 return PolicyFactory::_duplicate ( 00095 dynamic_cast<PolicyFactory_ptr> (_tao_objref) 00096 ); 00097 }
static PolicyFactory_ptr PortableInterceptor::PolicyFactory::_nil | ( | void | ) | [inline, static] |
Reimplemented from CORBA::Object.
Definition at line 117 of file PolicyFactoryC.h.
Referenced by TAO_PolicyFactory_Registry::_create_policy(), and TAO_PolicyFactory_Registry::create_policy().
void PortableInterceptor::PolicyFactory::_tao_release | ( | PolicyFactory_ptr | obj | ) | [static] |
Definition at line 121 of file PolicyFactoryC.cpp.
References release().
00122 { 00123 ::CORBA::release (obj); 00124 }
PortableInterceptor::PolicyFactory_ptr PortableInterceptor::PolicyFactory::_unchecked_narrow | ( | ::CORBA::Object_ptr | obj | ) | [static] |
Definition at line 100 of file PolicyFactoryC.cpp.
References _duplicate().
00103 { 00104 return PolicyFactory::_duplicate ( 00105 dynamic_cast<PolicyFactory_ptr> (_tao_objref) 00106 ); 00107 }
virtual ::CORBA::Policy_ptr PortableInterceptor::PolicyFactory::create_policy | ( | ::CORBA::PolicyType | type, | |
const ::CORBA::Any & | value | |||
) | [pure virtual] |
Referenced by TAO_PolicyFactory_Registry::create_policy().
CORBA::Boolean PortableInterceptor::PolicyFactory::marshal | ( | TAO_OutputCDR & | cdr | ) | [virtual] |
void PortableInterceptor::PolicyFactory::operator= | ( | const PolicyFactory & | ) | [private] |