#include <Notify_Constraint_Interpreter.h>
Public Member Functions | |
TAO_Notify_Constraint_Interpreter (void) | |
virtual | ~TAO_Notify_Constraint_Interpreter (void) |
Destructor. | |
void | build_tree (const char *constraints) |
CORBA::Boolean | evaluate (TAO_Notify_Constraint_Visitor &evaluator) |
Definition at line 37 of file Notify_Constraint_Interpreter.h.
|
Definition at line 11 of file Notify_Constraint_Interpreter.cpp.
00012 { 00013 } |
|
Destructor.
Definition at line 15 of file Notify_Constraint_Interpreter.cpp.
00016 { 00017 } |
|
This method builds an expression tree representing the constraint specified in , and throws an Illegal Constraint exception if the constraint given has syntax errors or semantic errors, such as mismatched types. Definition at line 20 of file Notify_Constraint_Interpreter.cpp. References ACE_NEW_THROW_EX.
00023 { 00024 if (TAO_ETCL_Interpreter::is_empty_string (constraints)) 00025 { 00026 // Root is deleted in the TAO_Interpreter's destructor. 00027 ACE_NEW_THROW_EX (this->root_, 00028 TAO_ETCL_Literal_Constraint ((CORBA::Boolean) 1), 00029 CORBA::NO_MEMORY ()); 00030 } 00031 else 00032 { 00033 // root_ is set in this base class call. 00034 if (TAO_ETCL_Interpreter::build_tree (constraints) != 0) 00035 throw CosNotifyFilter::InvalidConstraint (); 00036 } 00037 } |
|
Returns true if the constraint is evaluated successfully by the evaluator. Definition at line 40 of file Notify_Constraint_Interpreter.cpp. References TAO_Notify_Constraint_Visitor::evaluate_constraint().
00041 { 00042 return evaluator.evaluate_constraint (this->root_); 00043 } |