TAO_CosTrader  2.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
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>

List of all members.

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 & (void) const
 Return the constructed policy sequence.
const CosTrading::PolicySeqpolicy_seq (void) 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::TAO_Policy_Creator ( int  num_policies = 0)

Member Function Documentation

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

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

Limit the breadth of a federated query.

Specify under what conditions a federated query is appropriate.

Set the maximum number of offers searched for the query.

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

Return the constructed policy sequence.

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

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

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

Set the maximum number of offers rerturned for the query.

Set the maximum number of offers searched for the query.

Designate a trader at which to begin the query.

Consider offers with dynamic properties.

Consider offers with modifiable properties.

Consider proxy offers (NOT SUPPORTED).


Member Data Documentation

The number of policies so far in the sequence.

The sequence being prepared for submittal to the query method.

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


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