#include <RT_Policy_i.h>
Inheritance diagram for TAO_ServerProtocolPolicy:
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. |
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.
00408 : ::CORBA::Object () 00409 , ::CORBA::Policy () 00410 , RTCORBA::ServerProtocolPolicy () 00411 , ::CORBA::LocalObject () 00412 , protocols_ (protocols) 00413 { 00414 }
TAO_ServerProtocolPolicy::TAO_ServerProtocolPolicy | ( | const TAO_ServerProtocolPolicy & | rhs | ) |
Copy constructor.
Definition at line 416 of file RT_Policy_i.cpp.
00417 : ::CORBA::Object () 00418 , ::CORBA::Policy () 00419 , RTCORBA::ServerProtocolPolicy () 00420 , ::CORBA::LocalObject () 00421 , protocols_ (rhs.protocols_) 00422 { 00423 }
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.
References TAO_CACHED_POLICY_RT_SERVER_PROTOCOL.
00482 { 00483 return TAO_CACHED_POLICY_RT_SERVER_PROTOCOL; 00484 }
TAO_Policy_Scope TAO_ServerProtocolPolicy::_tao_scope | ( | void | ) | const |
Definition at line 487 of file RT_Policy_i.cpp.
References TAO_POLICY_ORB_SCOPE, and TAO_POLICY_POA_SCOPE.
00488 { 00489 return static_cast<TAO_Policy_Scope> (TAO_POLICY_ORB_SCOPE | 00490 TAO_POLICY_POA_SCOPE); 00491 }
CORBA::Policy_ptr TAO_ServerProtocolPolicy::copy | ( | void | ) |
Definition at line 464 of file RT_Policy_i.cpp.
References ACE_NEW_THROW_EX, CORBA::COMPLETED_NO, and TAO::VMCID.
00465 { 00466 TAO_ServerProtocolPolicy* tmp = 0; 00467 ACE_NEW_THROW_EX (tmp, 00468 TAO_ServerProtocolPolicy (*this), 00469 CORBA::NO_MEMORY (TAO::VMCID, 00470 CORBA::COMPLETED_NO)); 00471 00472 return tmp; 00473 }
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.
References ACE_NEW_THROW_EX, CORBA::BAD_POLICY_VALUE, CORBA::COMPLETED_NO, and TAO::VMCID.
Referenced by TAO_RT_PolicyFactory::create_policy().
00431 { 00432 RTCORBA::ProtocolList *value = 0; 00433 if ((val >>= value) == 0) 00434 throw ::CORBA::PolicyError (CORBA::BAD_POLICY_VALUE); 00435 00436 TAO_ServerProtocolPolicy *tmp = 0; 00437 ACE_NEW_THROW_EX (tmp, 00438 TAO_ServerProtocolPolicy (*value), 00439 CORBA::NO_MEMORY (TAO::VMCID, 00440 CORBA::COMPLETED_NO)); 00441 00442 return tmp; 00443 }
void TAO_ServerProtocolPolicy::destroy | ( | void | ) |
CORBA::PolicyType TAO_ServerProtocolPolicy::policy_type | ( | void | ) |
RTCORBA::ProtocolList * TAO_ServerProtocolPolicy::protocols | ( | void | ) |
Definition at line 446 of file RT_Policy_i.cpp.
References ACE_NEW_THROW_EX, CORBA::COMPLETED_NO, and TAO::VMCID.
00447 { 00448 RTCORBA::ProtocolList *tmp = 0; 00449 ACE_NEW_THROW_EX (tmp, 00450 RTCORBA::ProtocolList (this->protocols_), 00451 CORBA::NO_MEMORY (TAO::VMCID, 00452 CORBA::COMPLETED_NO)); 00453 00454 return tmp; 00455 }
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.
References protocols_.
Referenced by TAO_RT_Protocols_Hooks::server_protocol_properties().
00495 { 00496 return protocols_; 00497 }
RTCORBA::ProtocolList TAO_ServerProtocolPolicy::protocols_ [private] |