summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be_include/be_visitor_root/root_sh.h
blob: db27baf64c1881807ec762e70de2ea57c2203e90 (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
/* -*- c++ -*- */

//=============================================================================
/**
 *  @file    root_sh.h
 *
 *  Concrete visitor for the Root class
 *  This one provides code generation for elements of the Root node in the
 *  server header.
 *
 *  @author Aniruddha Gokhale
 */
//=============================================================================

#ifndef _BE_VISITOR_ROOT_ROOT_SH_H_
#define _BE_VISITOR_ROOT_ROOT_SH_H_

/**
 * @class be_visitor_root_sh
 *
 * @brief be_visitor_root_sh
 *
 * This is a concrete visitor to generate the server header for root
 */
class be_visitor_root_sh : public be_visitor_root
{
public:
  be_visitor_root_sh (be_visitor_context *ctx);

  ~be_visitor_root_sh ();

  virtual int visit_root (be_root *node);

private:
  /// Open file and initialize stream.
  int init ();

  /// Generate arg template trait specializations in
  /// the skeleton header file, done before the main
  /// scope traversal.
  int gen_arg_traits (be_root *node);
};

#endif /* _BE_VISITOR_ROOT_ROOT_SH_H_ */