Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / TAO_IDL / be_include / be_visitor_decl.h
blobcde8ecb37ef2cb59f132f23c84f9f0d7d7163b6b
1 /* -*- c++ -*- */
2 //=============================================================================
3 /**
4 * @file be_visitor_decl.h
6 * Concrete visitor for the base "BE_Decl" node
8 * @author Aniruddha Gokhale and Carlos O'Ryan
9 */
10 //=============================================================================
12 #ifndef TAO_BE_VISITOR_DECL_H
13 #define TAO_BE_VISITOR_DECL_H
15 #include "be_visitor.h"
16 #include "be_codegen.h"
17 #include "be_helper.h"
19 /**
20 * @class be_visitor_decl
22 * @brief be_visitor_decl
24 * This is a concrete visitor for the be_decl node. Its only purpose is to
25 * maintain state information for the derived visitor
27 class be_visitor_decl : public be_visitor
29 public:
30 be_visitor_decl (be_visitor_context *ctx);
32 ~be_visitor_decl ();
34 be_visitor_context *ctx ();
36 protected:
37 /// Any context information required by the visitor.
38 be_visitor_context *ctx_;
40 /// Factors out common code used when one anonymous type is
41 /// contained by another.
42 int gen_anonymous_base_type (be_type *bt,
43 TAO_CodeGen::CG_STATE cg_state);
45 /// Our file stream.
46 TAO_OutStream &os_;
49 #endif // TAO_BE_VISITOR_DECL_H