#include <PolicyFactoryC.h>


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) |
| Determine if we are of the type specified by the "logical_type_id". | |
| virtual const char * | _interface_repository_id (void) const |
| virtual ::CORBA::Boolean | marshal (TAO_OutputCDR &cdr) |
| Allows us to forbid marshaling of local interfaces. | |
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) |
| Return a NULL object. | |
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.
Reimplemented from CORBA::Object.
Definition at line 99 of file PolicyFactoryC.h.
Reimplemented from CORBA::Object.
Definition at line 100 of file PolicyFactoryC.h.
| PortableInterceptor::PolicyFactory::PolicyFactory | ( | void | ) | [protected] |
Definition at line 83 of file PolicyFactoryC.cpp.
{}
| PortableInterceptor::PolicyFactory::~PolicyFactory | ( | void | ) | [protected, virtual] |
Definition at line 86 of file PolicyFactoryC.cpp.
{}
| PortableInterceptor::PolicyFactory::PolicyFactory | ( | const PolicyFactory & | ) | [private] |
| CORBA::Policy_ptr PortableInterceptor::PolicyFactory::_create_policy | ( | CORBA::PolicyType | type | ) |
Definition at line 165 of file PolicyFactoryC.cpp.
{
throw ::CORBA::PolicyError (CORBA::BAD_POLICY_TYPE);
}
| PortableInterceptor::PolicyFactory_ptr PortableInterceptor::PolicyFactory::_duplicate | ( | PolicyFactory_ptr | obj | ) | [static] |
Definition at line 110 of file PolicyFactoryC.cpp.
{
if (! ::CORBA::is_nil (obj))
{
obj->_add_ref ();
}
return obj;
}
| const char * PortableInterceptor::PolicyFactory::_interface_repository_id | ( | void | ) | const [virtual] |
The repository ID for the most derived class, this is an implementation method and does no remote invocations!
Reimplemented from CORBA::Object.
Definition at line 152 of file PolicyFactoryC.cpp.
{
return "IDL:omg.org/PortableInterceptor/PolicyFactory:1.0";
}
| CORBA::Boolean PortableInterceptor::PolicyFactory::_is_a | ( | const char * | logical_type_id | ) | [virtual] |
Determine if we are of the type specified by the "logical_type_id".
Reimplemented from CORBA::Object.
Definition at line 127 of file PolicyFactoryC.cpp.
{
if (
!ACE_OS::strcmp (
value,
"IDL:omg.org/PortableInterceptor/PolicyFactory:1.0"
) ||
!ACE_OS::strcmp (
value,
"IDL:omg.org/CORBA/LocalObject:1.0"
) ||
!ACE_OS::strcmp (
value,
"IDL:omg.org/CORBA/Object:1.0"
)
)
{
return true; // success using local knowledge
}
else
{
return false;
}
}
| PortableInterceptor::PolicyFactory_ptr PortableInterceptor::PolicyFactory::_narrow | ( | ::CORBA::Object_ptr | obj | ) | [static] |
Definition at line 90 of file PolicyFactoryC.cpp.
{
return PolicyFactory::_duplicate (
dynamic_cast<PolicyFactory_ptr> (_tao_objref)
);
}
| static PolicyFactory_ptr PortableInterceptor::PolicyFactory::_nil | ( | void | ) | [inline, static] |
Return a NULL object.
Reimplemented from CORBA::Object.
Definition at line 117 of file PolicyFactoryC.h.
{
return static_cast<PolicyFactory_ptr> (0);
}
| void PortableInterceptor::PolicyFactory::_tao_release | ( | PolicyFactory_ptr | obj | ) | [static] |
Definition at line 121 of file PolicyFactoryC.cpp.
{
::CORBA::release (obj);
}
| PortableInterceptor::PolicyFactory_ptr PortableInterceptor::PolicyFactory::_unchecked_narrow | ( | ::CORBA::Object_ptr | obj | ) | [static] |
Definition at line 100 of file PolicyFactoryC.cpp.
{
return PolicyFactory::_duplicate (
dynamic_cast<PolicyFactory_ptr> (_tao_objref)
);
}
| virtual ::CORBA::Policy_ptr PortableInterceptor::PolicyFactory::create_policy | ( | ::CORBA::PolicyType | type, | |
| const ::CORBA::Any & | value | |||
| ) | [pure virtual] |
| CORBA::Boolean PortableInterceptor::PolicyFactory::marshal | ( | TAO_OutputCDR & | cdr | ) | [virtual] |
Allows us to forbid marshaling of local interfaces.
Reimplemented from CORBA::Object.
Definition at line 158 of file PolicyFactoryC.cpp.
{
return false;
}
| void PortableInterceptor::PolicyFactory::operator= | ( | const PolicyFactory & | ) | [private] |
1.7.0