blob: 7f7a34758b1dc33048a8720d45f9ee83b0ca14fd (
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
|
//
// $Id$
//
// ============================================================================
//
// = LIBRARY
// TAO IDL
//
// = FILENAME
// exception_ci.cpp
//
// = DESCRIPTION
// Visitor generating code for Exception in the inline file.
//
// = AUTHOR
// Aniruddha Gokhale
//
// ============================================================================
#include "idl.h"
#include "idl_extern.h"
#include "be.h"
#include "be_visitor_exception.h"
ACE_RCSID(be_visitor_exception, exception_ci, "$Id$")
// ******************************************************
// for client inline
// ******************************************************
be_visitor_exception_ci::be_visitor_exception_ci (be_visitor_context *ctx)
: be_visitor_exception (ctx)
{
}
be_visitor_exception_ci::~be_visitor_exception_ci (void)
{
}
// visit the Exception node and its scope
int be_visitor_exception_ci::visit_exception (be_exception *node)
{
TAO_OutStream *os = this->ctx_->stream (); // output stream
if (!node->cli_inline_gen () && !node->imported ())
{
os = this->ctx_->stream ();
os->indent ();
*os << "// *************************************************************"
<< be_nl;
*os << "// Inline operations for exception " << node->name () << be_nl;
*os << "// *************************************************************\n\n";
// generate inline code required of any anonymous types of members
if (this->visit_scope (node) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_exception::"
"visit_exception -"
"code for inline failed\n"), -1);
}
node->cli_inline_gen (I_TRUE);
}
return 0;
}
|