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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO IDL
//
// = FILENAME
// be_eventtype.cpp
//
// = DESCRIPTION
// Extension of class AST_EventType and be_valuetype that provides
// additional means for C++ mapping of an eventtype.
//
// = AUTHOR
// Jeff Parsons
//
// ============================================================================
#include "be_eventtype.h"
#include "be_visitor.h"
ACE_RCSID (be,
be_eventtype,
"$Id$")
// Default constructor.
be_eventtype::be_eventtype (void)
{
}
// Constructor used to build the AST.
be_eventtype::be_eventtype (UTL_ScopedName *n,
AST_Interface **inherits,
long n_inherits,
AST_ValueType *inherits_concrete,
AST_Interface **inherits_flat,
long n_inherits_flat,
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
idl_bool abstract,
idl_bool truncatable)
: be_valuetype (n,
inherits,
n_inherits,
inherits_concrete,
inherits_flat,
n_inherits_flat,
supports,
n_supports,
supports_concrete,
abstract,
truncatable),
be_interface (n,
inherits,
n_inherits,
inherits_flat,
n_inherits_flat,
0,
abstract),
AST_ValueType (n,
inherits,
n_inherits,
inherits_concrete,
inherits_flat,
n_inherits_flat,
supports,
n_supports,
supports_concrete,
abstract,
truncatable),
AST_Interface (n,
inherits,
n_inherits,
inherits_flat,
n_inherits_flat,
0,
abstract),
AST_Decl (AST_Decl::NT_eventtype,
n),
UTL_Scope (AST_Decl::NT_eventtype),
COMMON_Base (0,
abstract)
{
}
be_eventtype::~be_eventtype (void)
{
}
// Accept a visitor.
int
be_eventtype::accept (be_visitor *visitor)
{
return visitor->visit_eventtype (this);
}
void
be_eventtype::destroy (void)
{
this->be_valuetype::destroy ();
}
// Narrowing.
IMPL_NARROW_METHODS2 (be_eventtype, be_valuetype, AST_EventType)
IMPL_NARROW_FROM_DECL (be_eventtype)
IMPL_NARROW_FROM_SCOPE (be_eventtype)
|