Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Monitor_Control / Constraint_Interpreter.h
blobe867c72ef0dd96d91e603a11eae8528d1428f311
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Constraint_Interpreter.h
7 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
8 */
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)
19 # 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
30 namespace ACE
32 namespace Monitor_Control
34 class Constraint_Visitor;
36 /**
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
46 public:
47 Constraint_Interpreter ();
49 virtual ~Constraint_Interpreter ();
51 /**
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
60 /// the evaluator.
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 */