Notify_Constraint_Interpreter.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   Notify_Constraint_Interpreter.h
00006  *
00007  *  $Id: Notify_Constraint_Interpreter.h 77001 2007-02-12 07:54:49Z johnnyw $
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 
00054   /// Returns true if the constraint is evaluated successfully by
00055   /// the evaluator.
00056   CORBA::Boolean evaluate (TAO_Notify_Constraint_Visitor &evaluator);
00057 };
00058 
00059 TAO_END_VERSIONED_NAMESPACE_DECL
00060 
00061 #include /**/ "ace/post.h"
00062 #endif /* TAO_NOTIFY_CONSTRAINT_INTERPRETER_H */

Generated on Sun Jan 27 15:39:56 2008 for TAO_CosNotification by doxygen 1.3.6