RTCORBA::ServerProtocolPolicy implementation. More...
#include <RT_Policy_i.h>


Public Member Functions | |
| TAO_ServerProtocolPolicy (const RTCORBA::ProtocolList &protocols) | |
| Constructor. | |
| TAO_ServerProtocolPolicy (const TAO_ServerProtocolPolicy &rhs) | |
| Copy constructor. | |
| RTCORBA::ProtocolList & | protocols_rep (void) |
| RTCORBA::ProtocolList * | protocols (void) |
| CORBA::PolicyType | policy_type (void) |
| CORBA::Policy_ptr | copy (void) |
| void | destroy (void) |
| TAO_Cached_Policy_Type | _tao_cached_type (void) const |
| TAO_Policy_Scope | _tao_scope (void) const |
Static Public Member Functions | |
| static CORBA::Policy_ptr | create (const CORBA::Any &val) |
Protected Member Functions | |
| virtual | ~TAO_ServerProtocolPolicy (void) |
Private Attributes | |
| RTCORBA::ProtocolList | protocols_ |
| Attribute. | |
RTCORBA::ServerProtocolPolicy implementation.
This policy controls selection and configuration of communication protocols on the server-side of the RT ORB.
Definition at line 290 of file RT_Policy_i.h.
| TAO_ServerProtocolPolicy::TAO_ServerProtocolPolicy | ( | const RTCORBA::ProtocolList & | protocols | ) |
Constructor.
Definition at line 407 of file RT_Policy_i.cpp.
: ::CORBA::Object () , ::CORBA::Policy () , RTCORBA::ServerProtocolPolicy () , ::CORBA::LocalObject () , protocols_ (protocols) { }
| TAO_ServerProtocolPolicy::TAO_ServerProtocolPolicy | ( | const TAO_ServerProtocolPolicy & | rhs | ) |
Copy constructor.
Definition at line 416 of file RT_Policy_i.cpp.
: ::CORBA::Object () , ::CORBA::Policy () , RTCORBA::ServerProtocolPolicy () , ::CORBA::LocalObject () , protocols_ (rhs.protocols_) { }
| TAO_ServerProtocolPolicy::~TAO_ServerProtocolPolicy | ( | void | ) | [protected, virtual] |
Protected destructor to enforce proper memory management of this reference counted object.
Definition at line 425 of file RT_Policy_i.cpp.
{
}
| TAO_Cached_Policy_Type TAO_ServerProtocolPolicy::_tao_cached_type | ( | void | ) | const |
Definition at line 481 of file RT_Policy_i.cpp.
{
return TAO_CACHED_POLICY_RT_SERVER_PROTOCOL;
}
| TAO_Policy_Scope TAO_ServerProtocolPolicy::_tao_scope | ( | void | ) | const |
Definition at line 487 of file RT_Policy_i.cpp.
{
return static_cast<TAO_Policy_Scope> (TAO_POLICY_ORB_SCOPE |
TAO_POLICY_POA_SCOPE);
}
| CORBA::Policy_ptr TAO_ServerProtocolPolicy::copy | ( | void | ) |
Definition at line 464 of file RT_Policy_i.cpp.
{
TAO_ServerProtocolPolicy* tmp = 0;
ACE_NEW_THROW_EX (tmp,
TAO_ServerProtocolPolicy (*this),
CORBA::NO_MEMORY (TAO::VMCID,
CORBA::COMPLETED_NO));
return tmp;
}
| CORBA::Policy_ptr TAO_ServerProtocolPolicy::create | ( | const CORBA::Any & | val | ) | [static] |
Helper method for the implementation of CORBA::ORB::create_policy.
Definition at line 430 of file RT_Policy_i.cpp.
{
RTCORBA::ProtocolList *value = 0;
if (!(val >>= value))
throw ::CORBA::PolicyError (CORBA::BAD_POLICY_VALUE);
TAO_ServerProtocolPolicy *tmp = 0;
ACE_NEW_THROW_EX (tmp,
TAO_ServerProtocolPolicy (*value),
CORBA::NO_MEMORY (TAO::VMCID,
CORBA::COMPLETED_NO));
return tmp;
}
| void TAO_ServerProtocolPolicy::destroy | ( | void | ) |
Definition at line 476 of file RT_Policy_i.cpp.
{
}
| CORBA::PolicyType TAO_ServerProtocolPolicy::policy_type | ( | void | ) |
Definition at line 458 of file RT_Policy_i.cpp.
{
return RTCORBA::SERVER_PROTOCOL_POLICY_TYPE;
}
| RTCORBA::ProtocolList * TAO_ServerProtocolPolicy::protocols | ( | void | ) |
Definition at line 446 of file RT_Policy_i.cpp.
{
RTCORBA::ProtocolList *tmp = 0;
ACE_NEW_THROW_EX (tmp,
RTCORBA::ProtocolList (this->protocols_),
CORBA::NO_MEMORY (TAO::VMCID,
CORBA::COMPLETED_NO));
return tmp;
}
| RTCORBA::ProtocolList & TAO_ServerProtocolPolicy::protocols_rep | ( | void | ) |
Accessor to the underlying protocols list of the policy (does not make a copy like the idl accessor <protocols> implementation below.)
Definition at line 494 of file RT_Policy_i.cpp.
{
return protocols_;
}
RTCORBA::ProtocolList TAO_ServerProtocolPolicy::protocols_ [private] |
Attribute.
Definition at line 335 of file RT_Policy_i.h.
1.7.0