summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be_include/be_visitor_operation/argument.h
blob: 2e95bc998ce62e1f47239d290fc526539ca03e2a (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

//=============================================================================
/**
 *  @file    argument.h
 *
 *  $Id$
 *
 *  Visitor for generating code for IDL operations. This is a generic visitor
 *  that calls visitors for the Argument class.
 *
 *
 *  @author Aniruddha Gokhale
 */
//=============================================================================


#ifndef _BE_VISITOR_OPERATION_ARGUMENT_H_
#define _BE_VISITOR_OPERATION_ARGUMENT_H_

// ************************************************************
// generic operation visitor for docall, upcall, pre/post
// ************************************************************

/**
 * @class be_visitor_operation_argument
 *
 * @brief be_visitor_operation_argument
 *
 * This is a visitor to generate a variable declaration ofr an operation
 * return type
 */
class be_visitor_operation_argument : public be_visitor_operation
{
public:
  /// constructor
  be_visitor_operation_argument (be_visitor_context *ctx);

  /// destructor
  ~be_visitor_operation_argument (void);

  /// stuff to o/p after each element of the scope is handled
  virtual int post_process (be_decl *);

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

  /// visit argument
  virtual int visit_argument (be_argument *node);
};

#endif /* _BE_VISITOR_OPERATION_ARGUMENT_H_ */