#include "../Version.h"
#include "tao/Version.h"
#include "global_extern.h"
#include "be_extern.h"
#include "drv_extern.h"
#include "ace/OS_NS_stdlib.h"
#include <iostream>
#include <iomanip>
Include dependency graph for be_init.cpp:
Go to the source code of this file.
Functions | |
void | BE_version () |
int | BE_init (int &, ACE_TCHAR *[]) |
void | BE_post_init (char *[], long) |
int BE_init | ( | int & | , | |
ACE_TCHAR * | [] | |||
) |
Definition at line 28 of file be_init.cpp.
References be_global.
00029 { 00030 ACE_NEW_RETURN(be_global, BE_GlobalData, -1); 00031 return 0; 00032 }
void BE_post_init | ( | char * | [], | |
long | ||||
) |
Definition at line 35 of file be_init.cpp.
References BE_GlobalData::add_inc_path(), be_global, DDS_MAJOR_VERSION, DDS_MICRO_VERSION, and DDS_MINOR_VERSION.
00036 { 00037 std::ostringstream version; 00038 version << "-D__OPENDDS_IDL=0x" 00039 << std::setw(2) << std::setfill('0') << DDS_MAJOR_VERSION 00040 << std::setw(2) << std::setfill('0') << DDS_MINOR_VERSION 00041 << std::setw(2) << std::setfill('0') << DDS_MICRO_VERSION; 00042 DRV_cpp_putarg(version.str().c_str()); 00043 00044 #ifdef ACE_HAS_CDR_FIXED 00045 DRV_cpp_putarg("-D__OPENDDS_IDL_HAS_FIXED"); 00046 #endif 00047 00048 const char* env = ACE_OS::getenv("DDS_ROOT"); 00049 if (env && env[0]) { 00050 std::string dds_root = env; 00051 if (dds_root.find(' ') != std::string::npos && dds_root[0] != '"') { 00052 dds_root.insert(dds_root.begin(), '"'); 00053 dds_root.insert(dds_root.end(), '"'); 00054 } 00055 be_global->add_inc_path(dds_root.c_str()); 00056 ACE_CString included; 00057 DRV_add_include_path(included, dds_root.c_str(), 0, true); 00058 } 00059 }
void BE_version | ( | ) |
Definition at line 21 of file be_init.cpp.
References DDS_VERSION.
00022 { 00023 ACE_DEBUG((LM_DEBUG, ACE_TEXT("OpenDDS version ") ACE_TEXT(DDS_VERSION) 00024 ACE_TEXT("\n"))); 00025 }