TAO_Trader_Constraint_Validator Class Reference

#include <Trader_Constraint_Visitors.h>

Inheritance diagram for TAO_Trader_Constraint_Validator:

Inheritance graph
[legend]
Collaboration diagram for TAO_Trader_Constraint_Validator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Trader_Constraint_Validator (const CosTradingRepos::ServiceTypeRepository::TypeStruct &type_struct)
virtual ~TAO_Trader_Constraint_Validator (void)
 Desctructor.


Constructor & Destructor Documentation

TAO_Trader_Constraint_Validator::TAO_Trader_Constraint_Validator const CosTradingRepos::ServiceTypeRepository::TypeStruct type_struct  ) 
 

The constructor creates a map of property names to their values from the Type Description retrieved from the ServiceTypeRepository. The ServiceTypeRepository throws exceptions when it's displeased with the type name provided to it. The map allows O(lg n) associative access, rather than the O(n) sequential lookup from the CORBA data structures.

Definition at line 62 of file Trader_Constraint_Visitors.cpp.

References CosTradingRepos::ServiceTypeRepository::PropStructSeq.

00063 {
00064   const CosTradingRepos::ServiceTypeRepository::PropStructSeq& prop_seq =
00065     type_struct.props;
00066   int length = prop_seq.length ();
00067 
00068   // Create a map of the service type properties to their types.
00069   for (int i = 0; i < length; i++)
00070     {
00071       CORBA::TypeCode_ptr corba_type =
00072         CORBA::TypeCode::_duplicate (prop_seq[i].value_type.in ());
00073 
00074       CORBA::String_var prop_name_str = (const char*) prop_seq[i].name;
00075       this->type_map_.bind (prop_name_str, corba_type);
00076     }
00077 }

TAO_Trader_Constraint_Validator::~TAO_Trader_Constraint_Validator void   )  [virtual]
 

Desctructor.

Definition at line 80 of file Trader_Constraint_Visitors.cpp.

00081 {
00082 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 14:01:21 2006 for TAO_CosTrader by doxygen 1.3.6