| 42 | bool success; |
| 43 | |
| 44 | DynamicWriter(const TypeSupport_var& ts, const DataWriter_var& dw) |
| 45 | : ts(ts) |
| 46 | , dw(dw) |
| 47 | , success(true) |
| 48 | { |
| 49 | #ifdef OPENDDS_SAFETY_PROFILE |
| 50 | ACE_ERROR((LM_ERROR, "ERROR: Can't use DynamicData on Safety Profile!\n")); |
| 51 | success = false; |
| 52 | #else |
| 53 | DDS::DynamicType_var dt = ts->get_type(); |
| 54 | if (OpenDDS::XTypes::dynamic_type_is_valid(dt)) { |
| 55 | dd = DDS::DynamicDataFactory::get_instance()->create_data(dt); |
| 56 | } else { |
| 57 | ACE_ERROR((LM_ERROR, "ERROR: Got invalid DynamicType from DynamicTypeSupport!\n")); |
| 58 | } |
| 59 | #endif |
| 60 | } |
| 61 | |
| 62 | void set_int32(const std::string& path, CORBA::Int32 value) |
| 63 | { |
nothing calls this directly
no test coverage detected