blob: f249b93d7110d35d07f5a3991e51f365a07e06bb (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO_IDL_BE
//
// = FILENAME
// interface_svs.cpp
//
// = DESCRIPTION
// Visitor generating code for Interfaces in the
// CIAO servant source file.
//
// = AUTHOR
// Jeff Parsons <j.parsons@vanderbilt.edu>
//
// ============================================================================
// ************************************************************
// Interface visitor for CIAO servant source.
// ************************************************************
ACE_RCSID (be_visitor_interface,
interface_svs,
"$Id$")
be_visitor_interface_svs::be_visitor_interface_svs (
be_visitor_context *ctx)
: be_visitor_interface (ctx)
{
}
be_visitor_interface_svs::~be_visitor_interface_svs (void)
{
}
int
be_visitor_interface_svs::visit_interface (be_interface *node)
{
if (! be_global->gen_lem_force_all ())
{
return 0;
}
// Skip implied IDL nodes.
if (node->original_interface () != 0)
{
return 0;
}
if (node->is_local () || node->imported () || node->is_abstract ())
{
return 0;
}
return node->gen_facet_svnt_src (this, *this->ctx_->stream ());
}
int
be_visitor_interface_svs::visit_operation (be_operation *node)
{
be_visitor_operation_svs v (this->ctx_);
v.scope (be_interface::narrow_from_decl (this->ctx_->scope ()));
return v.visit_operation (node);
}
int
be_visitor_interface_svs::visit_attribute (be_attribute *node)
{
be_visitor_attribute v (this->ctx_);
v.for_facets (true);
v.op_scope (be_interface::narrow_from_decl (this->ctx_->scope ()));
return v.visit_attribute (node);
}
|