|
Public Types |
enum | POLICY_TYPE {
STARTING_TRADER,
EXACT_TYPE_MATCH,
HOP_COUNT,
LINK_FOLLOW_RULE,
MATCH_CARD,
RETURN_CARD,
SEARCH_CARD,
USE_DYNAMIC_PROPERTIES,
USE_MODIFIABLE_PROPERTIES,
USE_PROXY_OFFERS,
REQUEST_ID
} |
Public Member Functions |
| TAO_Policies (TAO_Trader_Base &trader, const CosTrading::PolicySeq &policies) throw (CosTrading::Lookup::IllegalPolicyName, CosTrading::DuplicatePolicyName) |
| ~TAO_Policies (void) |
CORBA::ULong | search_card () const throw (CosTrading::Lookup::PolicyTypeMismatch) |
CORBA::ULong | match_card () const throw (CosTrading::Lookup::PolicyTypeMismatch) |
CORBA::ULong | return_card () const throw (CosTrading::Lookup::PolicyTypeMismatch) |
CORBA::Boolean | use_modifiable_properties () const throw (CosTrading::Lookup::PolicyTypeMismatch) |
CORBA::Boolean | use_dynamic_properties () const throw (CosTrading::Lookup::PolicyTypeMismatch) |
CORBA::Boolean | use_proxy_offers () const throw (CosTrading::Lookup::PolicyTypeMismatch) |
CORBA::Boolean | exact_type_match () const throw (CosTrading::Lookup::PolicyTypeMismatch) |
CosTrading::TraderName * | starting_trader () const throw (CosTrading::Lookup::PolicyTypeMismatch, CosTrading::Lookup::InvalidPolicyValue) |
CosTrading::FollowOption | link_follow_rule () const throw (CosTrading::Lookup::PolicyTypeMismatch) |
| Determine the link follow policy for this query overall.
|
CosTrading::FollowOption | link_follow_rule (const CosTrading::Link::LinkInfo &link_info) const throw (CosTrading::Lookup::PolicyTypeMismatch, CosTrading::Lookup::InvalidPolicyValue, CosTrading::Link::IllegalLinkName, CosTrading::Link::UnknownLinkName) |
CORBA::ULong | hop_count () const throw (CosTrading::Lookup::PolicyTypeMismatch) |
CosTrading::Admin::OctetSeq * | request_id () const throw (CosTrading::Lookup::PolicyTypeMismatch) |
void | copy_to_pass (CosTrading::PolicySeq &policy_seq, const CosTrading::Admin::OctetSeq &request_id) const |
| Policies to forward to the next trader in a federated query.
|
void | copy_to_forward (CosTrading::PolicySeq &policy_seq, const CosTrading::TraderName &name) const |
| Policies to forward to the next trader in a directed query.
|
void | copy_in_follow_option (CosTrading::PolicySeq &policy_seq, const CosTrading::Link::LinkInfo &link_info) const throw (CosTrading::Lookup::PolicyTypeMismatch, CosTrading::Lookup::InvalidPolicyValue) |
Static Public Attributes |
const char * | POLICY_NAMES [] |
Private Member Functions |
CORBA::ULong | ulong_prop (POLICY_TYPE pol) const throw (CosTrading::Lookup::PolicyTypeMismatch) |
| Reconclile a ULong property with its default.
|
CORBA::Boolean | boolean_prop (POLICY_TYPE pol) const throw (CosTrading::Lookup::PolicyTypeMismatch) |
| Reconcile a Boolean property with its debault.
|
| TAO_Policies (const TAO_Policies &) |
TAO_Policies & | operator= (const TAO_Policies &) |
Private Attributes |
CosTrading::Policy * | policies_ [TAO_NUM_POLICIES] |
| The policies indexable from the enumerated type.
|
TAO_Trader_Base & | trader_ |
| For the validating identifier names.
|
TAO_Policies does an admirable job of reconciling differences between the default parameter settings of the Trader and the import and other policies set by the client. Unbeknownst to its client TAO_Policies hides this arbitration, and records whether the user policy was chosen, or the default. This information gets returned to the invoker of the query method.