summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be_include/be_visitor_enum/enum_ch.h
blob: c1514b5f7126dd025b6720f865aa1099ef2c596d (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
/* -*- C++ -*- */

//=============================================================================
/**
 *  @file    enum_ch.h
 *
 *  Concrete visitor for Enums generating code in the client header.
 *
 *  @author Aniruddha Gokhale
 */
//=============================================================================


#ifndef _BE_VISITOR_ENUM_ENUM_CH_H_
#define _BE_VISITOR_ENUM_ENUM_CH_H_

/**
 * @class be_visitor_enum_ch
 *
 * @brief be_visitor_enum_ch
 *
 * This is the base visitor for enum for the header file
 */
class be_visitor_enum_ch : public be_visitor_scope
{
public:
  /// conenumor
  be_visitor_enum_ch (be_visitor_context *ctx);

  /// deenumor
  ~be_visitor_enum_ch ();

  /// visit enum.
  virtual int visit_enum (be_enum *node);

  // =visit operations on syntactically valid elements in our scope

  /// visit enum_val
  virtual int visit_enum_val (be_enum_val *node);

  // = helper

  /// generate a comma after each element is processed
  virtual int post_process (be_decl *);
};

#endif /* _BE_VISITOR_ENUM_ENUM_CH_H_ */