summaryrefslogtreecommitdiff
path: root/TAO/examples/Simulator/DOVEMIB/NodeVisitor.h
blob: d19e065ae2cf9909207b2a6cd1af01d6f70d0e48 (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
// $Id$
// ============================================================================
//
// = LIBRARY
//
// = FILENAME
//    NodeVisitor.h
//
// = AUTHOR
//    Michael Kircher 
//
// = DESCRIPTION
//    This file descibes the Visitor used by the any evaluator.
//
// ============================================================================

#if !defined (NODE_VISITOR_H)
#define NODE_VISITOR_H

class StructNode;
class DoubleNode;
class LongNode;
class ULongNode;
class StringNode;

// base class for all the specialized visitors

class NodeVisitor {
public:
  virtual void visitStructNode (StructNode *structNode) = 0;
  virtual void visitDoubleNode (DoubleNode *doubleNode) = 0;
  virtual void visitLongNode (LongNode *longNode) = 0;
  virtual void visitULongNode (ULongNode *uLongNode) = 0;  
  virtual void visitStringNode (StringNode *stringNode) = 0;
protected:
  NodeVisitor () {}
};

#endif // NODE_VISITOR_H