#include "be_extern.h"
#include "be_util.h"
#include "../Version.h"
#include <global_extern.h>
#include <drv_extern.h>
#include <ace/OS_NS_stdlib.h>
#include <iostream>
#include <iomanip>
Go to the source code of this file.
◆ BE_init()
Definition at line 28 of file be_init.cpp.
References ACE_NEW_RETURN, and be_global.
31 idl_global->default_idl_version_ = IDL_VERSION_4;
32 idl_global->anon_type_diagnostic(IDL_GlobalData::ANON_TYPE_SILENT);
BE_GlobalData * be_global
#define ACE_NEW_RETURN(POINTER, CONSTRUCTOR, RET_VAL)
◆ BE_post_init()
| void BE_post_init |
( |
char * |
[], |
|
|
long |
|
|
) |
| |
Definition at line 37 of file be_init.cpp.
References be_global, ACE_String_Base< char >::c_str(), be_util::dds_root(), OPENDDS_MAJOR_VERSION, OPENDDS_MICRO_VERSION, OPENDDS_MINOR_VERSION, and Annotations::register_all().
39 if (idl_global->idl_version_ < IDL_VERSION_4) {
40 idl_global->ignore_files_ =
true;
41 be_global->error(
"OpenDDS requires IDL version to be 4 or greater");
45 std::ostringstream version;
46 version <<
"-D__OPENDDS_IDL=0x" 50 DRV_cpp_putarg(version.str().c_str());
52 #ifdef ACE_HAS_CDR_FIXED 53 DRV_cpp_putarg(
"-D__OPENDDS_IDL_HAS_FIXED");
57 if (include_dds.find(
' ') != std::string::npos && include_dds[0] !=
'"') {
58 include_dds.insert(include_dds.begin(),
'"');
59 include_dds.insert(include_dds.end(),
'"');
61 be_global->add_inc_path(include_dds.c_str());
63 DRV_add_include_path(included, include_dds.
c_str(), 0,
true);
65 DRV_cpp_putarg(
"-D__OPENDDS_IDL_HAS_ANNOTATIONS");
69 idl_global->eval(
"module OpenDDS {@annotation hidden_op_in_java {string impl;};};\n");
#define OPENDDS_MICRO_VERSION
const char * c_str(void) const
#define OPENDDS_MINOR_VERSION
const char * dds_root()
Get DDS_ROOT. It is a fatal error if it wasn't set.
#define OPENDDS_MAJOR_VERSION
BE_GlobalData * be_global
◆ BE_version()