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 81639 2008-05-07 18:45:12Z johnnyw $
00008  *
00009  *  @author Pradeep Gore <pradeep@cs.wustl.edu>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef TAO_NOTIFY_CONSTRAINT_INTERPRETER_H
00014 #define TAO_NOTIFY_CONSTRAINT_INTERPRETER_H
00015 
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "ace/ETCL/ETCL_Interpreter.h"
00019 
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif /* ACE_LACKS_PRAGMA_ONCE */
00023 
00024 #include "tao/ETCL/TAO_ETCL_Constraint.h"
00025 
00026 #include "orbsvcs/CosNotifyFilterC.h"
00027 #include "orbsvcs/Notify/notify_serv_export.h"
00028 
00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00030 
00031 class TAO_Notify_Constraint_Visitor;
00032 
00033 /**
00034  * @class TAO_Notify_Constraint_Interpreter
00035  *
00036  * @brief "ETCL" Interpreter for the Notify queries.
00037  */
00038 class TAO_Notify_Serv_Export TAO_Notify_Constraint_Interpreter
00039   : public ETCL_Interpreter
00040 {
00041 public:
00042   // = Initialization and termination methods.
00043   TAO_Notify_Constraint_Interpreter (void);
00044 
00045   /// Destructor
00046   virtual ~TAO_Notify_Constraint_Interpreter (void);
00047 
00048   /**
00049    * This method builds an expression tree representing the
00050    * constraint specified in @a constraints, and throws an Illegal
00051    * Constraint exception if the constraint given has syntax errors or
00052    * semantic errors, such as mismatched types.
00053    */
00054   void build_tree (const char* constraints);
00055 
00056   /// Returns true if the constraint is evaluated successfully by
00057   /// the evaluator.
00058   CORBA::Boolean evaluate (TAO_Notify_Constraint_Visitor &evaluator);
00059 };
00060 
00061 TAO_END_VERSIONED_NAMESPACE_DECL
00062 
00063 #include /**/ "ace/post.h"
00064 #endif /* TAO_NOTIFY_CONSTRAINT_INTERPRETER_H */

Generated on Tue Feb 2 17:45:29 2010 for TAO_CosNotification by  doxygen 1.4.7