pbbool be_ServerTieHeader::Open(const DDS_StdString& mainFilename) { if (be_Source::Open(mainFilename)) { os << "//******************************************************************\n" << "// \n" << "// Generated by IDL to C++ Translator\n" << "// \n" << "// File name: " << filename << "\n" << "// Source: " << idl_global->main_filename()->get_string() << "\n" << "// Generated: " << CreationTime() << "\n" << "// OpenFusion V" << VERSION << "\n" << "// \n" << "//******************************************************************\n"; ndefname = Ifndefize(filename); os << "#ifndef " << (const char*)ndefname << nl; os << "#define " << (const char*)ndefname << nl << nl; os << nl; return pbtrue; } }
pbbool be_ClientImplementation::Open(const DDS_StdString& mainFilename) { if (be_Source::Open (mainFilename)) { BE_Globals::CFileOpen = pbtrue; os << "//******************************************************************\n" << "// \n" << "// Generated by IDL to C++ Translator\n" << "// \n" << "// File name: " << BE_Globals::ClientImplFilename << "\n" << "// Source: " << idl_global->main_filename()->get_string() << "\n" << "// Generated: " << CreationTime() << "\n" << "// OpenSplice " << VERSION << "\n" << "// \n" << "//******************************************************************\n"; os << nl; if (DDSRealIncludeFiles::includes[FindFilename(BE_Globals::ClientHeaderFilename)].length() == 0) { if (BE_Globals::collocated_direct) { os << "#include \"" << (const char*)BE_Globals::ServerHeaderFilename << "\"" << nl; } else { os << "#include \"" << (const char*)BE_Globals::ClientHeaderFilename << "\"" << nl; } } else { if (BE_Globals::collocated_direct) { os << "#include \"" << (const char*)DDSRealIncludeFiles::includes[FindFilename(BE_Globals::ServerHeaderFilename)] << "\"" << nl; } else { os << "#include \"" << (const char*)DDSRealIncludeFiles::includes[FindFilename(BE_Globals::ClientHeaderFilename)] << "\"" << nl; } } os << nl; return pbtrue; } else { return pbfalse; } }
pbbool be_ClientHeader::Open (const DDS_StdString& mainFilename) { if (be_Source::Open (mainFilename)) { BE_Globals::HFileOpen = pbtrue; os << "//******************************************************************\n" << "// \n" << "// Generated by IDL to C++ Translator\n" << "// \n" << "// File name: " << BE_Globals::ClientHeaderFilename << "\n" << "// Source: " << idl_global->main_filename()->get_string() << "\n" << "// Generated: " << CreationTime() << "\n" << "// OpenSplice " << OSPL_VERSION_STR << "\n" << "// \n" << "//******************************************************************\n"; ndefname = Ifndefize(BE_Globals::ClientHeaderFilename); os << "#ifndef " << (const char*) ndefname << nl; os << "#define " << (const char*) ndefname << nl; if (BE_Globals::isocpp || BE_Globals::isocpp_new_types) { os << "#ifndef OPENSPLICE_ISOCXX_PSM" << nl; os << "#define OPENSPLICE_ISOCXX_PSM" << nl; os << "#endif" << nl; } os << nl << "#include \"sacpp_mapping.h\"" << nl; // os << "#include \"sacpp_DDS_DCPS.h\"" << nl; GenerateSecondaryIncludes (os); if (BE_Globals::isocpp_new_types) { os << "#include <dds/core/ddscore.hpp>" << nl; } if (BE_Globals::isocpp_test_methods) { os << "#include <generate_test_values.hpp>" << nl; } if (BE_Globals::UserDLL != (const char *)"" && BE_Globals::UserDLLHeader != (const char *)"" ) { os << "#include \"" << BE_Globals::UserDLLHeader << "\"" << nl; } if (BE_Globals::UserDLL != (const char *)"") { BE_Globals::DLLExtension = " "; } os << nl; return pbtrue; } else { return pbfalse; } }
pbbool be_ClientHeader::Open (const DDS_StdString& mainFilename) { if (be_Source::Open (mainFilename)) { BE_Globals::HFileOpen = pbtrue; os << "//******************************************************************\n" << "// \n" << "// Generated by IDL to C++ Translator\n" << "// \n" << "// File name: " << BE_Globals::ClientHeaderFilename << "\n" << "// Source: " << idl_global->main_filename()->get_string() << "\n" << "// Generated: " << CreationTime() << "\n" << "// OpenSplice " << VERSION << "\n" << "// \n" << "//******************************************************************\n"; ndefname = Ifndefize(BE_Globals::ClientHeaderFilename); os << "#ifndef " << (const char*) ndefname << nl; os << "#define " << (const char*) ndefname << nl << nl; if (BE_Globals::UserDLL != (const char *)"" && BE_Globals::UserDLLHeader != (const char *)"" ) { os << "#include \"" << BE_Globals::UserDLLHeader << "\"" << nl; } os << "#include \"sacpp_mapping.h\"" << nl; os << "#include \"sacpp_DDS_DCPS.h\"" << nl; GenerateSecondaryIncludes (os); if (BE_Globals::UserDLL != (const char *)"") { BE_Globals::DLLExtension = " "; } return pbtrue; } else { return pbfalse; } }
pbbool be_ServerImplementation::Open (const DDS_StdString & mainFilename) { if (be_Source::Open (mainFilename)) { os << "//******************************************************************\n" << "// \n" << "// Generated by IDL to C++ Translator\n" << "// \n" << "// File name: " << BE_Globals::ServerImplFilename << "\n" << "// Source: " << idl_global->main_filename()->get_string() << "\n" << "// Generated: " << CreationTime() << "\n" << "// OpenFusion V" << OSPL_VERSION_STR << "\n" << "// \n" << "//******************************************************************\n"; if (DDSRealIncludeFiles::includes[FindFilename(BE_Globals::ServerHeaderFilename)].length() == 0) { if (!BE_Globals::gen_onefile) { os << "#include \"" << (const char*)BE_Globals::ServerHeaderFilename << "\"" << nl; } } else { if (!BE_Globals::gen_onefile) { os << "#include \"" << (const char*)DDSRealIncludeFiles::includes[FindFilename(BE_Globals::ServerHeaderFilename)] << "\"" << nl; } } os << nl; return pbtrue; } else { return pbfalse; } }
pbbool be_ServerHeader::Open(const DDS_StdString& mainFilename) { if (be_Source::Open(mainFilename)) { if (!BE_Globals::gen_onefile) { os << "//******************************************************************\n" << "// \n" << "// Generated by IDL to C++ Translator\n" << "// \n" << "// File name: " << BE_Globals::ServerHeaderFilename << "\n" << "// Source: " << idl_global->main_filename()->get_string() << "\n" << "// Generated: " << CreationTime() << "\n" << "// OpenFusion V" << VERSION << "\n" << "// \n" << "//******************************************************************\n"; } if (BE_Globals::gen_onefile) { ndefname = Ifndefize(BE_Globals::ServerHeaderFilename); } else { ndefname = Ifndefize(BE_Globals::ServerHeaderFilename); } os << "#ifndef " << (const char*)ndefname << nl; os << "#define " << (const char*)ndefname << nl << nl; os << nl; os << "#include \"eOrb/idl_s.h\"" << nl; if (DDSRealIncludeFiles::includes[FindFilename(BE_Globals::ClientHeaderFilename)].length() == 0) { if (!BE_Globals::gen_onefile) { os << "#include \"" << (const char*)BE_Globals::ClientHeaderFilename << "\"" << nl; } } else { if (!BE_Globals::gen_onefile) { os << "#include \"" << (const char*)DDSRealIncludeFiles::includes[FindFilename(BE_Globals::ClientHeaderFilename)] << "\"" << nl; } } String_map::iterator it; for (it = idlIncludes.begin() ; it != idlIncludes.end(); it++) { DDS_StdString file(it.value() + BE_Globals::ServerExtension + "." + BE_Globals::hExtension); if (DDSRealIncludeFiles::includes[file].length() == 0) { os << "#include \"" << (const char*)file << "\"" << nl; } else { os << "#include \"" << (const char*)DDSRealIncludeFiles::includes[file] << "\"" << nl; } } os << nl; return pbtrue; } else { return pbfalse; } }
NS_IMETHODIMP nsCookie::GetCreationTime(int64_t *aCreation){ *aCreation = CreationTime(); return NS_OK; }