summaryrefslogtreecommitdiff
path: root/trunk/TAO/TAO_IDL/be_include/be_visitor_decl.h
blob: ca9132d486a94ddbfc9daa6be947d6ee122890b6 (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
//
// $Id$
//
/* -*- c++ -*- */
// ============================================================================
//
// = LIBRARY
//    TAO IDL
//
// = FILENAME
//    be_visitor_decl.h
//
// = DESCRIPTION
//    Concrete visitor for the base "BE_Decl" node
//
// = AUTHOR
//    Aniruddha Gokhale and Carlos O'Ryan
//
// ============================================================================

#ifndef TAO_BE_VISITOR_DECL_H
#define TAO_BE_VISITOR_DECL_H

#include "be_visitor.h"
#include "be_codegen.h"

class be_visitor_decl : public be_visitor
{
  //
  // = TITLE
  //    be_visitor_decl
  //
  // = DESCRIPTION
  //   This is a concrete visitor for the be_decl node. Its only purpose is to
  //   maintain state information for the derived visitor
  //
public:
  be_visitor_decl (be_visitor_context *ctx);

  ~be_visitor_decl (void);
  
  be_visitor_context *ctx (void);

protected:
  // Using a protected mechanism will allow derived visitors to access this
  // information.

  be_visitor_context *ctx_;
  // Any context information required by the visitor.

  int gen_anonymous_base_type (be_type *bt,
                               TAO_CodeGen::CG_STATE cg_state);
  // Factors out common code used when one anonymous type is
  // contained by another.
};

#endif // TAO_BE_VISITOR_DECL_H