blob: cd4245174c26b22253f2312a8c198c989c3f4a8a (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/* -*- c++ -*- */
//=============================================================================
/**
* @file connector_dds_exh.h
*
* $Id$
*
* Concrete visitor for the DDS Connector node.
* This provides for code generation in the exec impl header
*
*
* @author Jeff Parsons
*/
//=============================================================================
#ifndef _BE_CONNECTOR_CONNECTOR_DDS_EXH_H_
#define _BE_CONNECTOR_CONNECTOR_DDS_EXH_H_
class be_visitor_context;
class be_visitor_connector_dds_exh
: public be_visitor_connector_dds_ex_base
{
//
// = TITLE
// be_visitor_connector_dds_exh
//
// = DESCRIPTION
// This is a concrete visitor to generate
// the executor implementation header for DDS connectors.
//
//
public:
be_visitor_connector_dds_exh (be_visitor_context *ctx);
~be_visitor_connector_dds_exh (void);
virtual int visit_connector (be_connector *node);
/// Override which also calls the base class version.
virtual int visit_mirror_port (be_mirror_port *node);
/// Used to generate the traits structures.
virtual int visit_provides (be_provides *node);
virtual int visit_uses (be_uses *node);
virtual int visit_attribute (be_attribute *node);
private:
/// Generate application-specific instantiations of
/// middleware templates containing traits constructs.
void gen_dds_traits (AST_Decl *datatype);
void gen_connector_traits (void);
/// Common code triggered by provides and uses ports.
void gen_interface_connector_trait (be_interface *iface,
be_field *port_elem,
bool for_facet);
/// Have to keep a list of port interfaces so their
/// dds
ACE_Unbounded_Queue<be_interface *> port_ifaces_;
};
#endif /* _BE_CONNECTOR_CONNECTOR_DDS_EXH_H_ */
|