#include "global_extern.h"
#include "be_extern.h"
#include "../../tao/Version.h"
Include dependency graph for be_init.cpp:
Go to the source code of this file.
Functions | |
int | BE_save_orb_args (int &argc, char *argv[]) |
int | BE_ifr_orb_init (int &ac, char *av[]) |
TAO_IFR_BE_Export void | BE_version (void) |
TAO_IFR_BE_Export int | BE_init (int &argc, char *argv[]) |
TAO_IFR_BE_Export void | BE_post_init (char *[], long) |
|
Definition at line 70 of file be_init.cpp. References ACE_TEXT(), be_global, and BE_GlobalData::orb(). Referenced by BE_init().
00071 { 00072 try 00073 { 00074 be_global->orb (CORBA::ORB_init (ac, 00075 av, 00076 0)); 00077 } 00078 catch (const CORBA::Exception& ex) 00079 { 00080 ex._tao_print_exception (ACE_TEXT ("BE_ifr_orb_init")); 00081 00082 return 1; 00083 } 00084 00085 return 0; 00086 } |
|
Definition at line 98 of file be_init.cpp. References ACE_NEW_RETURN, be_global, BE_ifr_orb_init(), and BE_save_orb_args().
00099 { 00100 // Initialize BE global data object. 00101 ACE_NEW_RETURN (be_global, 00102 BE_GlobalData, 00103 -1); 00104 00105 int status = BE_save_orb_args (argc, argv); 00106 00107 if (status != 0) 00108 { 00109 return status; 00110 } 00111 00112 idl_global->using_ifr_backend (true); 00113 00114 return BE_ifr_orb_init (argc, argv); 00115 } |
|
Definition at line 118 of file be_init.cpp.
00119 { 00120 } |
|
Definition at line 8 of file be_init.cpp. References ACE_CString, be_global, BE_GlobalData::orb_args(), ssize_t, and ACE_OS::strncmp(). Referenced by BE_init().
00009 { 00010 int i = 1; 00011 ACE_CString holder; 00012 00013 while (i < argc) 00014 { 00015 if (ACE_OS::strncmp (argv[i], "-ORB", 4) == 0) 00016 { 00017 holder += ACE_CString (argv[i]); 00018 holder += " "; 00019 00020 // Could be another -ORBxxx arg or an IDL compiler arg. 00021 if (*argv[i + 1] == '-') 00022 { 00023 ++i; 00024 continue; 00025 } 00026 00027 // No-copy constructor. 00028 ACE_CString tmp (argv[i + 1], 00029 0, 00030 false); 00031 00032 // If the arg ends with either .idl or .pidl, we're done. 00033 00034 size_t len = tmp.length (); 00035 ssize_t pos = tmp.find (".idl"); 00036 00037 if (len - pos == 4) 00038 { 00039 return 0; 00040 } 00041 00042 pos = tmp.find (".pidl"); 00043 00044 if (len - pos == 5) 00045 { 00046 return 0; 00047 } 00048 00049 // If we're here, the next arg goes with the preceding -ORBxxx. 00050 holder += tmp; 00051 holder += " "; 00052 i += 2; 00053 } 00054 else 00055 { 00056 ++i; 00057 } 00058 } 00059 00060 be_global->orb_args (holder); 00061 00062 return 0; 00063 } |
|
Definition at line 89 of file be_init.cpp. References ACE_DEBUG, ACE_TEXT(), LM_DEBUG, and TAO_VERSION.
00090 { 00091 ACE_DEBUG ((LM_DEBUG, 00092 "%s %s\n", 00093 ACE_TEXT ("TAO_IFR_BE, version"), 00094 ACE_TEXT (TAO_VERSION))); 00095 } |