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 ACE_ENV_ARG_DECL) throw (CosNotifyFilter::InvalidConstraint, CORBA::NO_MEMORY)
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  ACE_ENV_ARG_DECL  )  throw (CosNotifyFilter::InvalidConstraint, CORBA::NO_MEMORY)
 

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 }

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 44 of file Notify_Constraint_Interpreter.cpp.

References TAO_Notify_Constraint_Visitor::evaluate_constraint().

00045 {
00046   return evaluator.evaluate_constraint (this->root_);
00047 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:31:40 2006 for TAO_CosNotification by doxygen 1.3.6