summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h
blob: 1953d2a48b132256b1dd5df69a4d049c6709667b (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

//=============================================================================
/**
 *  @file    arglist.h
 *
 *  $Id$
 *
 *  Visitor for generating code for IDL (valuetype) operations.
 *  This generates the operation signature.
 *
 *
 *
 */
//=============================================================================


#ifndef _BE_VISITOR_OBV_OPERATION_ARGLIST_H_
#define _BE_VISITOR_OBV_OPERATION_ARGLIST_H_

// ******************************************************************************
// Operation visitor for argument list - generates parameters in the signature
// ******************************************************************************

/**
 * @class be_visitor_obv_operation_arglist
 *
 * @brief be_visitor_operaion_arglist
 *
 * This is a visitor to generate operation argument list
 */
class be_visitor_obv_operation_arglist : public be_visitor_scope
{
public:
  /// constructor
  be_visitor_obv_operation_arglist (be_visitor_context *ctx);

  /// destructor
  ~be_visitor_obv_operation_arglist (void);

  /// special arglist generation for amh_exceptionholders
  bool is_amh_exception_holder (be_operation *node);

  /// visit the operation
  int visit_operation (be_operation *node);

  /// visit each argument
  int visit_argument (be_argument *node);

  /// set 'comma' only between arguments
  int post_process (be_decl *bd);
};

#endif /* _BE_VISITOR_OBV_OPERATION_ARGLIST_H_ */