| 297 | } |
| 298 | |
| 299 | ACE_CString |
| 300 | BE_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 | |
| 344 | void BE_GlobalData::warning(const char* msg, const char* filename, unsigned lineno) |
| 345 | { |
no test coverage detected