Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members
TAO_Constraint_Interpreter Class Reference
TAO_Constraint_Interpreter will, given a constraint string whose syntax and semantics comply with the trader specification for the constraint language, determine if a CosTrading::Offer meets the constraints.
More...
#include <Constraint_Interpreter.h>
Inheritance diagram for TAO_Constraint_Interpreter:
[legend]Collaboration diagram for TAO_Constraint_Interpreter:
[legend]List of all members.
Detailed Description
TAO_Constraint_Interpreter will, given a constraint string whose syntax and semantics comply with the trader specification for the constraint language, determine if a CosTrading::Offer meets the constraints.
TAO_Constraint_Interpreter will first build an expression tree representing the constraint expression using Lex and Yacc. Then, using a TAO_Constraint_Validator, it will validate the semantic correctness of the tree. When the evaluate method is invoked with an Offer, the TAO_Constraint_Interpreter will construct an EvaluationVisitor, which will evaluate the tree and decide whether the offer meets the constraints.
Constructor & Destructor Documentation
|
This constructor builds an expression tree representing the constraint specified in <constraints>, and throws an Illegal Constraint exception if the constraint given has syntax errors or semantic errors, such as mismatched types. |
TAO_Constraint_Interpreter::~TAO_Constraint_Interpreter |
( |
void |
|
) |
|
|
Member Function Documentation
The documentation for this class was generated from the following files:
Generated on Fri Apr 2 19:23:04 2004 for TAO_CosTrader by
1.2.18