#include "global_extern.h"
#include "be_extern.h"
#include "../../tao/Version.h"
Go to the source code of this file.
Functions | |
int | BE_save_orb_args (int &argc, ACE_TCHAR *argv[]) |
int | BE_ifr_orb_init (int &ac, ACE_TCHAR *av[]) |
TAO_IFR_BE_Export void | BE_version (void) |
TAO_IFR_BE_Export int | BE_init (int &argc, ACE_TCHAR *argv[]) |
TAO_IFR_BE_Export void | BE_post_init (char *[], long) |
int BE_ifr_orb_init | ( | int & | ac, | |
ACE_TCHAR * | av[] | |||
) |
Definition at line 70 of file be_init.cpp.
{ try { ACE_TCHAR* name = 0; be_global->orb (CORBA::ORB_init (ac, av, name)); } catch (const CORBA::Exception& ex) { ex._tao_print_exception (ACE_TEXT ("BE_ifr_orb_init")); return 1; } return 0; }
TAO_IFR_BE_Export int BE_init | ( | int & | argc, | |
ACE_TCHAR * | argv[] | |||
) |
Definition at line 99 of file be_init.cpp.
{ // Initialize BE global data object. ACE_NEW_RETURN (be_global, BE_GlobalData, -1); int status = BE_save_orb_args (argc, argv); if (status != 0) { return status; } idl_global->using_ifr_backend (true); return BE_ifr_orb_init (argc, argv); }
TAO_IFR_BE_Export void BE_post_init | ( | char * | [], | |
long | ||||
) |
Definition at line 119 of file be_init.cpp.
{ }
int BE_save_orb_args | ( | int & | argc, | |
ACE_TCHAR * | argv[] | |||
) |
Definition at line 8 of file be_init.cpp.
{ int i = 1; ACE_TString holder; while (i < argc) { if (ACE_OS::strncmp (argv[i], ACE_TEXT("-ORB"), 4) == 0) { holder += ACE_TString (argv[i]); holder += ACE_TEXT(" "); // Could be another -ORBxxx arg or an IDL compiler arg. if (*argv[i + 1] == '-') { ++i; continue; } // No-copy constructor. ACE_TString tmp (argv[i + 1], 0, false); // If the arg ends with either .idl or .pidl, we're done. size_t len = tmp.length (); ssize_t pos = tmp.find (ACE_TEXT(".idl")); if (len - pos == 4) { return 0; } pos = tmp.find (ACE_TEXT(".pidl")); if (len - pos == 5) { return 0; } // If we're here, the next arg goes with the preceding -ORBxxx. holder += tmp; holder += ACE_TEXT(" "); i += 2; } else { ++i; } } be_global->orb_args (ACE_TEXT_ALWAYS_CHAR(holder.c_str())); return 0; }
TAO_IFR_BE_Export void BE_version | ( | void | ) |
Definition at line 90 of file be_init.cpp.
{ ACE_DEBUG ((LM_DEBUG, "%s %s\n", ACE_TEXT ("TAO_IFR_BE, version"), ACE_TEXT (TAO_VERSION))); }