summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be_include/be_visitor_home/home_exh.h
blob: e5d1f190b2522d20860a628b9bd9040752374d40 (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
/* -*- c++ -*- */
//=============================================================================
/**
 *  @file    home_exh.h
 *
 *  Concrete visitor for the Home node.
 *  This provides for code generation in the exec impl header
 *
 *  @author Jeff Parsons
 */
//=============================================================================


#ifndef _BE_HOME_HOME_EXH_H_
#define _BE_HOME_HOME_EXH_H_

/**
 * @class be_visitor_home_exh
 *
 * @brief be_visitor_home_exh
 *
 * This is a concrete visitor to generate the
 * exec impl header for home.
 */
class be_visitor_home_exh : public be_visitor_scope
{
public:
  be_visitor_home_exh (be_visitor_context *ctx);

  ~be_visitor_home_exh (void);

  virtual int visit_home (be_home *node);
  virtual int visit_operation (be_operation *node);
  virtual int visit_attribute (be_attribute *node);
  virtual int visit_factory (be_factory *node);

  /// Helper method passed to traverse_inheritance_graph(),
  /// collects supported operations and attributes.
  static int op_attr_decl_helper (be_interface *,
                                  be_interface *,
                                  TAO_OutStream *);

private:
  int gen_exec_class (void);

  void gen_entrypoint (void);

private:
  be_home *node_;
  AST_Component *comp_;
  TAO_OutStream &os_;
  ACE_CString export_macro_;
};

#endif /* _BE_HOME_HOME_EXH_H_ */