#include <RT_Endpoint_Utils.h>
Static Public Member Functions | |
| static CORBA::Policy_ptr | policy (TAO_Cached_Policy_Type type, TAO::Profile_Transport_Resolver &r) |
Private Member Functions | |
| TAO_RT_Endpoint_Utils () | |
| ctor. | |
Definition at line 43 of file RT_Endpoint_Utils.h.
| TAO_RT_Endpoint_Utils::TAO_RT_Endpoint_Utils | ( | ) | [private] |
ctor.
| CORBA::Policy_ptr TAO_RT_Endpoint_Utils::policy | ( | TAO_Cached_Policy_Type | type, | |
| TAO::Profile_Transport_Resolver & | r | |||
| ) | [static] |
Definition at line 22 of file RT_Endpoint_Utils.cpp.
{
CORBA::Policy_ptr policy = CORBA::Policy::_nil ();
TAO_RT_Stub * const rt_stub =
dynamic_cast<TAO_RT_Stub *> (r.stub ());
if (!rt_stub)
throw CORBA::INTERNAL ();
try
{
policy = rt_stub->get_cached_policy (type);
}
catch (const ::CORBA::INV_POLICY&)
{
if (r.inconsistent_policies ())
{
CORBA::PolicyList *p = r.inconsistent_policies ();
p->length (1);
(*p)[0u] = rt_stub->TAO_Stub::get_cached_policy (type);
}
throw;
}
return policy;
}
1.7.0