#include "TAO_IFR_BE_Export.h"
#include "be_global.h"
Include dependency graph for be_extern.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
TAO_IFR_BE_Export int | BE_init (int &, char *[]) |
TAO_IFR_BE_Export void | BE_post_init (char *[], long) |
TAO_IFR_BE_Export void | BE_version (void) |
TAO_IFR_BE_Export void | BE_produce (void) |
TAO_IFR_BE_Export void | BE_cleanup (void) |
TAO_IFR_BE_Export void | BE_abort (void) |
Variables | |
TAO_IFR_BE_Export BE_GlobalData * | be_global |
|
Definition at line 92 of file be_produce.cpp. References ACE_ERROR, ACE_TEXT(), and LM_ERROR. Referenced by BE_produce().
00093 { 00094 ACE_ERROR ((LM_ERROR, 00095 ACE_TEXT ("Fatal Error - Aborting\n"))); 00096 00097 // BE_cleanup will be called after the exception is caught. 00098 throw FE_Bailout (); 00099 } |
|
Definition at line 85 of file be_produce.cpp. Referenced by BE_produce().
00086 { 00087 idl_global->destroy (); 00088 } |
|
Definition at line 103 of file be_init.cpp. References ACE_NEW_RETURN, be_global, BE_ifr_orb_init(), and BE_save_orb_args().
00104 { 00105 // Initialize BE global data object. 00106 ACE_NEW_RETURN (be_global, 00107 BE_GlobalData, 00108 -1); 00109 00110 int status = BE_save_orb_args (argc, argv); 00111 00112 if (status != 0) 00113 { 00114 return status; 00115 } 00116 00117 idl_global->using_ifr_backend (true); 00118 00119 return BE_ifr_orb_init (argc, argv); 00120 } |
|
Definition at line 123 of file be_init.cpp.
00124 { 00125 } |
|
Definition at line 174 of file be_produce.cpp. References ACE_ANY_EXCEPTION, ACE_CATCHANY, ACE_DECLARE_NEW_CORBA_ENV, ACE_ENDTRY, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_ERROR, ACE_PRINT_EXCEPTION, ACE_TEXT(), ACE_TRY, ACE_TRY_CHECK, BE_abort(), BE_cleanup(), BE_create_holding_scope(), be_global, BE_ifr_repo_init(), LM_ERROR, BE_GlobalData::removing(), TAO_IFR_VISITOR_WRITE_GUARD, and ifr_removing_visitor::visit_scope().
00175 { 00176 ACE_DECLARE_NEW_CORBA_ENV; 00177 ACE_TRY 00178 { 00179 int status = BE_ifr_repo_init (ACE_ENV_SINGLE_ARG_PARAMETER); 00180 ACE_TRY_CHECK; 00181 00182 if (status != 0) 00183 { 00184 return; 00185 } 00186 00187 BE_create_holding_scope (ACE_ENV_SINGLE_ARG_PARAMETER); 00188 ACE_TRY_CHECK; 00189 00190 // Get the root node. 00191 AST_Decl *d = idl_global->root (); 00192 AST_Root *root = AST_Root::narrow_from_decl (d); 00193 00194 if (root == 0) 00195 { 00196 ACE_ERROR ((LM_ERROR, 00197 ACE_TEXT ("(%N:%l) BE_produce - ") 00198 ACE_TEXT ("No Root\n"))); 00199 00200 BE_abort (); 00201 } 00202 00203 if (be_global->removing ()) 00204 { 00205 ifr_removing_visitor visitor; 00206 00207 TAO_IFR_VISITOR_WRITE_GUARD; 00208 00209 // If the visitor is dispatched this way, we need to override 00210 // only visit_scope() for the removing visitor. 00211 if (visitor.visit_scope (root) == -1) 00212 { 00213 ACE_ERROR (( 00214 LM_ERROR, 00215 ACE_TEXT ("(%N:%l) BE_produce -") 00216 ACE_TEXT (" failed to accept removing visitor\n") 00217 )); 00218 00219 BE_abort (); 00220 } 00221 } 00222 else 00223 { 00224 ifr_adding_visitor visitor (d); 00225 00226 TAO_IFR_VISITOR_WRITE_GUARD; 00227 00228 if (root->ast_accept (&visitor) == -1) 00229 { 00230 ACE_ERROR (( 00231 LM_ERROR, 00232 ACE_TEXT ("(%N:%l) BE_produce -") 00233 ACE_TEXT (" failed to accept adding visitor\n") 00234 )); 00235 00236 BE_abort (); 00237 } 00238 } 00239 } 00240 ACE_CATCHANY 00241 { 00242 ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, 00243 ACE_TEXT ("BE_produce")); 00244 00245 } 00246 ACE_ENDTRY; 00247 00248 // Clean up. 00249 BE_cleanup (); 00250 } |
|
Definition at line 94 of file be_init.cpp. References ACE_DEBUG, ACE_TEXT(), LM_DEBUG, and TAO_VERSION.
00095 { 00096 ACE_DEBUG ((LM_DEBUG, 00097 "%s %s\n", 00098 ACE_TEXT ("TAO_IFR_BE, version"), 00099 ACE_TEXT (TAO_VERSION))); 00100 } |
|