TAO_CosTrader 4.0.1
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TAO_Policy_Creator Class Reference

This class is a utility for clients using the CosTrading::Lookup interface that helps them build a policy sequence without violating syntax rules and having to mess with typecodes. More...

#include <Trader_Utils.h>

Public Member Functions

 TAO_Policy_Creator (int num_policies=0)
 
void search_card (CORBA::ULong scard)
 Set the maximum number of offers searched for the query.
 
void match_card (CORBA::ULong mcard)
 Set the maximum number of offers searched for the query.
 
void return_card (CORBA::ULong rcard)
 Set the maximum number of offers rerturned for the query.
 
void use_modifiable_properties (CORBA::Boolean mod_props)
 Consider offers with modifiable properties.
 
void use_dynamic_properties (CORBA::Boolean dyn_props)
 Consider offers with dynamic properties.
 
void use_proxy_offers (CORBA::Boolean prox_offs)
 Consider proxy offers (NOT SUPPORTED).
 
void starting_trader (const CosTrading::TraderName &name)
 Designate a trader at which to begin the query.
 
void starting_trader (CosTrading::TraderName *name)
 
void link_follow_rule (CosTrading::FollowOption follow_option)
 Specify under what conditions a federated query is appropriate.
 
void hop_count (CORBA::ULong hop_count)
 Limit the breadth of a federated query.
 
void request_id (const CosTrading::Admin::OctetSeq &request_id)
 Set the identifier for this query (clients shouldn't use this).
 
void exact_type_match (CORBA::Boolean exact_type)
 Search only the designated type — not it's subtypes.
 
 operator const CosTrading::PolicySeq & () const
 Return the constructed policy sequence.
 
const CosTrading::PolicySeqpolicy_seq () const
 

Private Member Functions

 TAO_Policy_Creator (const TAO_Policy_Creator &)
 
TAO_Policy_Creatoroperator= (const TAO_Policy_Creator &)
 
CosTrading::Policyfetch_next_policy (TAO_Policies::POLICY_TYPE pol_type)
 

Private Attributes

int poltable_ [TAO_Policies::REQUEST_ID+1]
 Table mapping policy enum value to the index in the policies sequence.
 
CosTrading::PolicySeq policies_
 The sequence being prepared for submittal to the query method.
 
CORBA::ULong num_policies_
 The number of policies so far in the sequence.
 

Detailed Description

This class is a utility for clients using the CosTrading::Lookup interface that helps them build a policy sequence without violating syntax rules and having to mess with typecodes.

Constructor & Destructor Documentation

◆ TAO_Policy_Creator() [1/2]

TAO_Policy_Creator::TAO_Policy_Creator ( int num_policies = 0)

◆ TAO_Policy_Creator() [2/2]

TAO_Policy_Creator::TAO_Policy_Creator ( const TAO_Policy_Creator & )
private

Member Function Documentation

◆ exact_type_match()

void TAO_Policy_Creator::exact_type_match ( CORBA::Boolean exact_type)

Search only the designated type — not it's subtypes.

◆ fetch_next_policy()

CosTrading::Policy & TAO_Policy_Creator::fetch_next_policy ( TAO_Policies::POLICY_TYPE pol_type)
private

Method to prepare the next slot in the policies_ sequence for policy insertion.

◆ hop_count()

void TAO_Policy_Creator::hop_count ( CORBA::ULong hop_count)

Limit the breadth of a federated query.

◆ link_follow_rule()

void TAO_Policy_Creator::link_follow_rule ( CosTrading::FollowOption follow_option)

Specify under what conditions a federated query is appropriate.

◆ match_card()

void TAO_Policy_Creator::match_card ( CORBA::ULong mcard)

Set the maximum number of offers searched for the query.

◆ operator const CosTrading::PolicySeq &()

TAO_Policy_Creator::operator const CosTrading::PolicySeq & ( ) const

Return the constructed policy sequence.

◆ operator=()

TAO_Policy_Creator & TAO_Policy_Creator::operator= ( const TAO_Policy_Creator & )
private

◆ policy_seq()

const CosTrading::PolicySeq & TAO_Policy_Creator::policy_seq ( ) const

Return a PolicySeq suitable for passing to the query method of the Lookup interface.

◆ request_id()

void TAO_Policy_Creator::request_id ( const CosTrading::Admin::OctetSeq & request_id)

Set the identifier for this query (clients shouldn't use this).

◆ return_card()

void TAO_Policy_Creator::return_card ( CORBA::ULong rcard)

Set the maximum number of offers rerturned for the query.

◆ search_card()

void TAO_Policy_Creator::search_card ( CORBA::ULong scard)

Set the maximum number of offers searched for the query.

◆ starting_trader() [1/2]

void TAO_Policy_Creator::starting_trader ( const CosTrading::TraderName & name)

Designate a trader at which to begin the query.

◆ starting_trader() [2/2]

void TAO_Policy_Creator::starting_trader ( CosTrading::TraderName * name)

◆ use_dynamic_properties()

void TAO_Policy_Creator::use_dynamic_properties ( CORBA::Boolean dyn_props)

Consider offers with dynamic properties.

◆ use_modifiable_properties()

void TAO_Policy_Creator::use_modifiable_properties ( CORBA::Boolean mod_props)

Consider offers with modifiable properties.

◆ use_proxy_offers()

void TAO_Policy_Creator::use_proxy_offers ( CORBA::Boolean prox_offs)

Consider proxy offers (NOT SUPPORTED).

Member Data Documentation

◆ num_policies_

CORBA::ULong TAO_Policy_Creator::num_policies_
private

The number of policies so far in the sequence.

◆ policies_

CosTrading::PolicySeq TAO_Policy_Creator::policies_
private

The sequence being prepared for submittal to the query method.

◆ poltable_

int TAO_Policy_Creator::poltable_[TAO_Policies::REQUEST_ID+1]
private

Table mapping policy enum value to the index in the policies sequence.


The documentation for this class was generated from the following files: