summaryrefslogtreecommitdiff
path: root/TAO_IDL/be_include/be_visitor_component/component.h
blob: 566419de2f7570c0b55074f2dec1529e7f7d57f8 (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
/* -*- c++ -*- */

//=============================================================================
/**
 *  @file    component.h
 *
 *  $Id$
 *
 *  Concrete visitor for components
 *  This one provides the generic visitor for the be_component node.
 *
 *
 *  @author Jeff Parsons
 */
//=============================================================================

#ifndef _BE_VISITOR_COMPONENT_COMPONENT_H_
#define _BE_VISITOR_COMPONENT_COMPONENT_H_

/**
 * @class be_visitor_component
 *
 * @brief be_visitor_component
 *
 * This is a concrete visitor for component
 * that abstracts all common tasks.
 */
class be_visitor_component : public be_visitor_interface
{

public:
  be_visitor_component (be_visitor_context *ctx);

  ~be_visitor_component (void);

  /// This is the only type of declaration a component may contain.
  virtual int visit_attribute (be_attribute *node);

  /// Operations are created by the back end for 'provides', 'uses', 'emits',
  /// 'publishes' and 'consumes' declarations.
  virtual int visit_operation (be_operation *node);

  /// Structs and sequences are created by the back end for 'uses multiple'
  /// declarations.
  virtual int visit_structure (be_structure *node);
  virtual int visit_typedef (be_typedef *node);

  /// Overridden to pick up attribute declarations from a porrttype.
  virtual int visit_extended_port (be_extended_port *node);
  virtual int visit_mirror_port (be_mirror_port *node);
};

#endif /* _BE_VISITOR_MODULE_MODULE_H_ */