3 //=============================================================================
5 * @file Constraint_Interpreter.h
7 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
9 //=============================================================================
11 #ifndef CONSTRAINT_INTERPRETER_H
12 #define CONSTRAINT_INTERPRETER_H
14 #include /**/ "ace/pre.h"
16 #include "ace/CDR_Base.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #if defined (ACE_HAS_MONITOR_FRAMEWORK) && (ACE_HAS_MONITOR_FRAMEWORK == 1)
24 #include "ace/ETCL/ETCL_Interpreter.h"
26 #include "ace/Monitor_Control/Monitor_Control_export.h"
28 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
32 namespace Monitor_Control
34 class Constraint_Visitor
;
37 * @class Constraint_Interpreter
39 * @brief "ETCL" Interpreter for MonitorControl constraints,
40 specialized to encapsulate MonitorControl-specific
41 knowledge of types and visitors.
43 class MONITOR_CONTROL_Export Constraint_Interpreter
44 : public ETCL_Interpreter
47 Constraint_Interpreter ();
49 virtual ~Constraint_Interpreter ();
52 * This method builds an expression tree representing the
53 * constraint specified in <constraints>, and returns -1 with
54 * an error message if the constraint given has syntax errors or
55 * semantic errors, such as mismatched types.
57 int build_tree (const char* constraints
);
59 /// Returns true if the constraint is evaluated successfully by
61 ACE_CDR::Boolean
evaluate (Constraint_Visitor
&evaluator
);
66 ACE_END_VERSIONED_NAMESPACE_DECL
68 #endif /* ACE_HAS_MONITOR_FRAMEWORK==1 */
70 #include /**/ "ace/post.h"
72 #endif /* CONSTRAINT_INTERPRETER_H */