summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be_include/be_visitor_constant.h
blob: f91580e3dd05503b2f39d4c0d66331fe34b0d1b0 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/* -*- C++ -*- */
//
// $Id$
//

// ============================================================================
//
// = LIBRARY
//    TAO IDL
//
// = FILENAME
//    be_visitor_constant.h
//
// = DESCRIPTION
//    Concrete visitor for the constant class
//
// = AUTHOR
//    Aniruddha Gokhale
//
// ============================================================================

#if !defined (TAO_BE_VISITOR_CONSTANT_H)
#define TAO_BE_VISITOR_CONSTANT_H

#include "be_visitor.h"
#include "be_visitor_scope.h"

class be_visitor_constant_ch : public be_visitor_decl
{
  //
  // = TITLE
  //   be_visitor_constant_ch
  //
  // = DESCRIPTION
  //   This is the visitor for constant for the header file
  //
  //
public:
  be_visitor_constant_ch (be_visitor_context *ctx);
  // constructor

  ~be_visitor_constant_ch (void);
  // destructor

  virtual int visit_constant (be_constant *node);
  // visit constant.

};

class be_visitor_constant_cs : public be_visitor_decl
{
  //
  // = TITLE
  //   be_visitor_constant_cs
  //
  // = DESCRIPTION
  //   This is the visitor for constant for the impl file
  //
  //
public:
  be_visitor_constant_cs (be_visitor_context *ctx);
  // constructor

  ~be_visitor_constant_cs (void);
  // destructor

  virtual int visit_constant (be_constant *node);
  // visit constant

  // = special methods

  virtual int gen_nested_namespace_begin (be_module *node);
  // generate the nested namespace begins

  virtual int gen_nested_namespace_end (be_module *node);
  // generate the nested namespace ends
};

#endif // TAO_BE_VISITOR_CONSTANT_H