diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-07-01 13:21:11 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-07-01 13:21:11 +0000 |
commit | 0bb67d7022da78fd60192cfef3f7223644a083be (patch) | |
tree | b506fa798aee4f75903150738a0843928c0ac750 /TAO/TAO_IDL | |
parent | aaf7bae108911a0892fc914093b284bfcbb1feaa (diff) | |
download | ATCD-0bb67d7022da78fd60192cfef3f7223644a083be.tar.gz |
ChangeLogTag: Fri Jul 1 13:16:45 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r-- | TAO/TAO_IDL/be/be_produce.cpp | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/TAO/TAO_IDL/be/be_produce.cpp b/TAO/TAO_IDL/be/be_produce.cpp index f8f47763880..3f282aa1389 100644 --- a/TAO/TAO_IDL/be/be_produce.cpp +++ b/TAO/TAO_IDL/be/be_produce.cpp @@ -166,11 +166,28 @@ BE_produce (void) } } - // Initialize the anyop streams here, if the option is set. - // It has to be done after the filename is set (for this iteration, - // if there are multiple IDL files) and before stub file generation, + // (1) Generate client header, + // instantiate a visitor context, and set the codegen state + ctx.state (TAO_CodeGen::TAO_ROOT_CH); + + // Get a root visitor. + be_visitor_root_ch root_ch_visitor (&ctx); + + // Generate code for the client header + if (root->accept (&root_ch_visitor) == -1) + { + ACE_ERROR ((LM_ERROR, + "(%N:%l) be_produce - " + "client header for Root failed\n")); + BE_abort (); + } + + // (2) Initialize the anyop streams, if the option is set. + // It has to be done after the stub header file generation, + // where checks for recursive types are done, + // and before stub source file generation, // since #includes of Any-related files may be redirected to a - // separate file, if the option below is set. + // separate file. if (be_global->gen_anyop_files ()) { int status = 0; @@ -189,23 +206,7 @@ BE_produce (void) } } - // (1) Generate client header, - // instantiate a visitor context, and set the codegen state - ctx.state (TAO_CodeGen::TAO_ROOT_CH); - - // Get a root visitor. - be_visitor_root_ch root_ch_visitor (&ctx); - - // Generate code for the client header - if (root->accept (&root_ch_visitor) == -1) - { - ACE_ERROR ((LM_ERROR, - "(%N:%l) be_produce - " - "client header for Root failed\n")); - BE_abort (); - } - - // (2) Generate client inline and + // (3) Generate client inline and // set the context information. if (be_global->gen_client_inline ()) { @@ -225,7 +226,7 @@ BE_produce (void) } } - // (3) Generate client stubs. + // (4) Generate client stubs. ctx.reset (); ctx.state (TAO_CodeGen::TAO_ROOT_CS); @@ -241,7 +242,7 @@ BE_produce (void) BE_abort (); } - // (4) Generate server header. + // (5) Generate server header. ctx.reset (); ctx.state (TAO_CodeGen::TAO_ROOT_SH); @@ -266,7 +267,7 @@ BE_produce (void) if (be_global->gen_server_inline ()) { - // (5) Generate server inline. + // (6) Generate server inline. ctx.reset (); ctx.state (TAO_CodeGen::TAO_ROOT_SI); @@ -283,7 +284,7 @@ BE_produce (void) } } - // (6) Generate server skeletons + // (7) Generate server skeletons ctx.reset (); ctx.state (TAO_CodeGen::TAO_ROOT_SS); @@ -299,7 +300,7 @@ BE_produce (void) BE_abort (); } - // (7) Generated server template header. + // (8) Generated server template header. if (be_global->gen_tie_classes ()) { ctx.reset (); @@ -322,7 +323,7 @@ BE_produce (void) // the implementation header and skeleton files. if (be_global->gen_impl_files ()) { - // (8) generate implementation header. + // (9) generate implementation header. ctx.reset (); ctx.state (TAO_CodeGen::TAO_ROOT_IH); @@ -338,7 +339,7 @@ BE_produce (void) BE_abort (); } - // (9) Generate implementation source. + // (10) Generate implementation source. ctx.reset (); ctx.state (TAO_CodeGen::TAO_ROOT_IS); |