#include <Trader_Constraint_Visitors.h>
Inheritance diagram for TAO_Trader_Constraint_Validator:
Public Member Functions | |
TAO_Trader_Constraint_Validator (const CosTradingRepos::ServiceTypeRepository::TypeStruct &type_struct) | |
virtual | ~TAO_Trader_Constraint_Validator (void) |
Desctructor. |
|
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 } |
|
Desctructor.
Definition at line 80 of file Trader_Constraint_Visitors.cpp.
00081 { 00082 } |