TAO_Notify_Constraint_Interpreter Class Reference

"ETCL" Interpreter for the Notify queries. More...

#include <Notify_Constraint_Interpreter.h>

List of all members.

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)


Detailed Description

"ETCL" Interpreter for the Notify queries.

Definition at line 37 of file Notify_Constraint_Interpreter.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_Constraint_Interpreter::TAO_Notify_Constraint_Interpreter void   ) 
 

Definition at line 11 of file Notify_Constraint_Interpreter.cpp.

00012 {
00013 }

TAO_Notify_Constraint_Interpreter::~TAO_Notify_Constraint_Interpreter void   )  [virtual]
 

Destructor.

Definition at line 15 of file Notify_Constraint_Interpreter.cpp.

00016 {
00017 }


Member Function Documentation

void TAO_Notify_Constraint_Interpreter::build_tree const char *  constraints  ) 
 

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 }

CORBA::Boolean TAO_Notify_Constraint_Interpreter::evaluate TAO_Notify_Constraint_Visitor evaluator  ) 
 

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 }


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 15:48:43 2008 for TAO_CosNotification by doxygen 1.3.6