Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / TAO_IDL / be / be_visitor_structure / structure_ci.cpp
blob2814fa8ff448fb01a03f24a526e97234ac48d025
2 //=============================================================================
3 /**
4 * @file structure_ci.cpp
6 * Visitor generating code for Structure in the inline file.
8 * @author Aniruddha Gokhale
9 */
10 //=============================================================================
12 #include "structure.h"
14 // ******************************************************
15 // for client inline
16 // ******************************************************
18 be_visitor_structure_ci::be_visitor_structure_ci (be_visitor_context *ctx)
19 : be_visitor_structure (ctx)
23 be_visitor_structure_ci::~be_visitor_structure_ci ()
27 // visit the Structure node and its scope
28 int be_visitor_structure_ci::visit_structure (be_structure *node)
30 if (node->cli_inline_gen () || node->imported ())
32 return 0;
35 // All we have to do is to visit the scope.
36 if (this->visit_scope (node) == -1)
38 ACE_ERROR_RETURN ((LM_ERROR,
39 "(%N:%l) be_visitor_structure_ci::"
40 "visit_structure - "
41 "codegen for scope failed\n"),
42 -1);
45 node->cli_inline_gen (true);
46 return 0;