blob: a64d3b5a7c5455b8a8e9d8ad9513abc2693f1b3c (
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
|
//
// $Id$
//
// ============================================================================
//
// = LIBRARY
// TAO IDL
//
// = FILENAME
// valuetype_fwd_ch.cpp
//
// = DESCRIPTION
// Visitor generating code for ValueTypeFwd node in the client header.
//
// = AUTHOR
// Boris Kolpackov <bosk@ipmce.ru>
// based on code from Torsten Kuepper
// based on code from Aniruddha Gokhale (interface_fwd_ch.cpp)
//
// ============================================================================
ACE_RCSID (be_visitor_valuetype_fwd,
valuetype_fwd_ch,
"$Id$")
be_visitor_valuetype_fwd_ch::be_visitor_valuetype_fwd_ch (
be_visitor_context *ctx
)
: be_visitor_decl (ctx)
{
}
be_visitor_valuetype_fwd_ch::~be_visitor_valuetype_fwd_ch (void)
{
}
// Visit the valuetype_fwd node and its scope.
int
be_visitor_valuetype_fwd_ch::visit_valuetype_fwd (be_valuetype_fwd *node)
{
if (node->cli_hdr_gen () || node->imported ())
{
return 0;
}
AST_Interface *fd = node->full_definition ();
be_valuetype *bfd = be_valuetype::narrow_from_decl (fd);
if (bfd->var_out_seq_decls_gen () == 0)
{
bfd->gen_var_out_seq_decls ();
bfd->var_out_seq_decls_gen (1);
}
node->cli_hdr_gen (I_TRUE);
return 0;
}
|