summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.h
blob: ef74e768156fea89b540f6440291546fb22c5a99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* -*- C++ -*- */
// $Id$

// ========================================================================
//
// = LIBRARY
//    orbsvcs
//
// = FILENAME
//    Log_Constraint_Interpreter.h
//
// = AUTHOR
//    Pradeep Gore <pradeep@cs.wustl.edu>
//
// ========================================================================

#ifndef TAO_LOG_CONSTRAINT_INTERPRETER_H
#define TAO_LOG_CONSTRAINT_INTERPRETER_H

#include "orbsvcs/orbsvcs/Trader/Constraint_Nodes.h"
#include "orbsvcs/orbsvcs/Trader/Constraint_Visitors.h"
#include "orbsvcs/orbsvcs/Trader/Interpreter.h"
#include "orbsvcs/orbsvcs/DsLogAdminC.h"

class TAO_Constraint_Evaluator;

class TAO_Log_Constraint_Interpreter : public TAO_Interpreter
{
  //
  // = TITLE
  //   TAO_Log_Constraint_Interpreter
  //
  // = DESCRIPTION
  //   "TCL" Interpreter for the Log queries.
public:
  // = Initialization and termination methods.
  TAO_Log_Constraint_Interpreter (const char* constraints,
                              CORBA::Environment& ACE_TRY_ENV)
    ACE_THROW_SPEC ((DsLogAdmin::InvalidConstraint,
                     CORBA::NO_MEMORY));
  // This constructor builds an expression tree representing the
  // constraint specified in <constraints>, and throws an Illegal
  // Constraint exception if the constraint given has syntax errors or
  // semantic errors, such as mismatched types.

  ~TAO_Log_Constraint_Interpreter (void);
  // Destructor

  CORBA::Boolean evaluate (TAO_Constraint_Evaluator& evaluator);
  // Returns true if the constraint is evaluated successfully by
  // the evaluator.
};
#endif /* TAO_LOG_CONSTRAINT_INTERPRETER_H */