#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 ACE_ENV_ARG_DECL) throw (CosNotifyFilter::InvalidConstraint, CORBA::NO_MEMORY) |
| 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_CHECK, ACE_NEW_THROW_EX, and ACE_THROW.
00026 {
00027 if (TAO_ETCL_Interpreter::is_empty_string (constraints))
00028 {
00029 // Root is deleted in the TAO_Interpreter's destructor.
00030 ACE_NEW_THROW_EX (this->root_,
00031 TAO_ETCL_Literal_Constraint ((CORBA::Boolean) 1),
00032 CORBA::NO_MEMORY ());
00033 ACE_CHECK;
00034 }
00035 else
00036 {
00037 // root_ is set in this base class call.
00038 if (TAO_ETCL_Interpreter::build_tree (constraints) != 0)
00039 ACE_THROW (CosNotifyFilter::InvalidConstraint ());
00040 }
00041 }
|
|
|
Returns true if the constraint is evaluated successfully by the evaluator. Definition at line 44 of file Notify_Constraint_Interpreter.cpp. References TAO_Notify_Constraint_Visitor::evaluate_constraint().
00045 {
00046 return evaluator.evaluate_constraint (this->root_);
00047 }
|
1.3.6