MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / get_include_block

Method get_include_block

java/idl2jni/codegen/be_global.cpp:299–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299ACE_CString
300BE_GlobalData::get_include_block(BE_GlobalData::stream_enum_t which)
301{
302 Includes_t *inc = 0;
303
304 switch (which) {
305 case STUB_H:
306 inc = &ch_;
307 break;
308 case STUB_CPP:
309 inc = &cc_;
310 break;
311 case SKEL_H:
312 inc = &sh_;
313 break;
314 case SKEL_CPP:
315 inc = &sc_;
316 break;
317 default:
318 return "";
319 }
320
321 ACE_CString ret;
322 Includes_t::const_iterator it = inc->begin(), end = inc->end();
323
324 for (; it != end; ++it) {
325 ret += "#include \"" + ACE_CString(it->c_str()) + "\"\n";
326 }
327
328 if (which == STUB_H) {
329 ACE_CString exports = this->stub_export_include();
330
331 if (exports != "")
332 ret += "#include \"" + exports + "\"\n";
333
334 } else if (which == SKEL_H) {
335 ACE_CString exports = this->skel_export_include();
336
337 if (exports != "")
338 ret += "#include \"" + exports + "\"\n";
339 }
340
341 return ret;
342}
343
344void BE_GlobalData::warning(const char* msg, const char* filename, unsigned lineno)
345{

Callers 1

postprocessFunction · 0.45

Calls 4

stub_export_includeMethod · 0.95
skel_export_includeMethod · 0.95
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected