blob: eb5303cc51eb1ce46b806a63c7f01005c5c009ce (
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
|
//=============================================================================
/**
* @file interface_svts.cpp
*
* Visitor generating code for Interfaces in the
* CIAO template servant source file.
*
* @author Marcel Smit
*/
//=============================================================================
#include "interface.h"
be_visitor_interface_svts::be_visitor_interface_svts (
be_visitor_context *ctx)
: be_visitor_interface (ctx)
{
}
be_visitor_interface_svts::~be_visitor_interface_svts (void)
{
}
int
be_visitor_interface_svts::visit_interface (be_interface *node)
{
be_visitor_facet_svts facet_svts (this->ctx_);
if (facet_svts.visit_interface (node) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_component_svts::")
ACE_TEXT ("visit_provides - ")
ACE_TEXT ("facet visitor failed\n")),
-1);
}
return 0;
}
int
be_visitor_interface_svts::visit_operation (be_operation *node)
{
be_visitor_operation_svs v (this->ctx_);
v.scope (dynamic_cast<be_interface*> (
this->ctx_->scope ()->decl ()));
return v.visit_operation (node);
}
int
be_visitor_interface_svts::visit_attribute (be_attribute *node)
{
be_visitor_attribute v (this->ctx_);
v.for_facets (true);
v.op_scope (dynamic_cast<be_interface*> (
this->ctx_->scope ()->decl ()));
return v.visit_attribute (node);
}
|