| 460 | } |
| 461 | |
| 462 | DDS::DynamicData_ptr DynamicDataBase::clone() |
| 463 | { |
| 464 | DDS::DynamicData_var new_copy = DDS::DynamicDataFactory::get_instance()->create_data(type_); |
| 465 | if (!new_copy || copy(new_copy, this) != DDS::RETCODE_OK) { |
| 466 | if (log_level >= LogLevel::Notice) { |
| 467 | ACE_ERROR((LM_NOTICE, "(%P|%t) NOTICE: DynamicDataBase::clone: Failed to create a copy\n")); |
| 468 | } |
| 469 | return 0; |
| 470 | } |
| 471 | return new_copy._retn(); |
| 472 | } |
| 473 | |
| 474 | namespace { |
| 475 | DDS::ReturnCode_t invalid_cast(const char* method, TypeKind to, TypeKind from) |
nothing calls this directly
no test coverage detected