Notify_Constraint_Interpreter.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   Notify_Constraint_Interpreter.h
00006  *
00007  *  Notify_Constraint_Interpreter.h,v 1.24 2006/03/14 06:14:34 jtc Exp
00008  *
00009  *  @author Pradeep Gore <pradeep@cs.wustl.edu>
00010  */
00011 //=============================================================================
00012 
00013 
00014 #ifndef TAO_NOTIFY_CONSTRAINT_INTERPRETER_H
00015 #define TAO_NOTIFY_CONSTRAINT_INTERPRETER_H
00016 
00017 #include /**/ "ace/pre.h"
00018 #include "orbsvcs/ETCL/ETCL_Interpreter.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 #include "orbsvcs/ETCL/ETCL_Constraint.h"
00025 #include "orbsvcs/CosNotifyFilterC.h"
00026 #include "orbsvcs/Notify/notify_serv_export.h"
00027 
00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00029 
00030 class TAO_Notify_Constraint_Visitor;
00031 
00032 /**
00033  * @class TAO_Notify_Constraint_Interpreter
00034  *
00035  * @brief "ETCL" Interpreter for the Notify queries.
00036  */
00037 class TAO_Notify_Serv_Export TAO_Notify_Constraint_Interpreter : public TAO_ETCL_Interpreter
00038 {
00039 public:
00040   // = Initialization and termination methods.
00041   TAO_Notify_Constraint_Interpreter (void);
00042 
00043   /// Destructor
00044   virtual ~TAO_Notify_Constraint_Interpreter (void);
00045 
00046   /**
00047    * This method builds an expression tree representing the
00048    * constraint specified in <constraints>, and throws an Illegal
00049    * Constraint exception if the constraint given has syntax errors or
00050    * semantic errors, such as mismatched types.
00051    */
00052   void build_tree (const char* constraints
00053                    ACE_ENV_ARG_DECL)
00054     ACE_THROW_SPEC ((CosNotifyFilter::InvalidConstraint,
00055                      CORBA::NO_MEMORY));
00056 
00057   /// Returns true if the constraint is evaluated successfully by
00058   /// the evaluator.
00059   CORBA::Boolean evaluate (TAO_Notify_Constraint_Visitor &evaluator);
00060 };
00061 
00062 TAO_END_VERSIONED_NAMESPACE_DECL
00063 
00064 #include /**/ "ace/post.h"
00065 #endif /* TAO_NOTIFY_CONSTRAINT_INTERPRETER_H */

Generated on Thu Nov 9 13:24:12 2006 for TAO_CosNotification by doxygen 1.3.6