summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be_include/be_visitor_component/executor_ex_idl.h
blob: c10c1d73d01fefbe97d9aa5e3d908e56e4c29f0b (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
/* -*- c++ -*- */
//=============================================================================
/**
 *  @file    executor_ex_idl.h
 *
 *  Provides code generation for components in the CIAO executor IDL.
 *
 *  @author Jeff Parsons
 */
//=============================================================================

#ifndef _BE_COMPONENT_EXECUTOR_EX_IDL_H_
#define _BE_COMPONENT_EXECUTOR_EX_IDL_H_

/**
 * This is a concrete visitor to generate the
 * CIAO executor class IDL.
 */
class be_visitor_executor_ex_idl
  : public be_visitor_component_scope
{
public:
  be_visitor_executor_ex_idl (be_visitor_context *ctx);

  ~be_visitor_executor_ex_idl (void);

  virtual int visit_component (be_component *node);
  virtual int visit_connector (be_connector *node);

  /// To regenerate attribute declarations.
  virtual int visit_attribute (be_attribute *node);

  /// To regenerate the name of the attribute's referenced
  /// (anonymous) type. Anonymous arrays are not allowed.
  virtual int visit_string (be_string *node);
  virtual int visit_sequence (be_sequence *node);

  virtual int visit_provides (be_provides *node);
  virtual int visit_consumes (be_consumes *node);

private:
  void gen_supported (void);
  void gen_exception_list (UTL_ExceptList *exceptions,
                           const char *prefix = "",
                           bool closed = true);
};

#endif /* _BE_COMPONENT_EXECUTOR_EX_IDL_H_ */