| 1312 | } |
| 1313 | |
| 1314 | void DCPS_IR_Domain::dispose_topic_bit(DCPS_IR_Topic* topic) |
| 1315 | { |
| 1316 | #if !defined (DDS_HAS_MINIMUM_BIT) |
| 1317 | |
| 1318 | if (useBIT_) { |
| 1319 | if (!topic->is_bit()) { |
| 1320 | try { |
| 1321 | DDS::TopicBuiltinTopicData key_data; |
| 1322 | DDS::InstanceHandle_t handle = topic->get_handle(); |
| 1323 | |
| 1324 | DDS::ReturnCode_t retGetKey |
| 1325 | = bitTopicDataWriter_->get_key_value(key_data, |
| 1326 | handle); |
| 1327 | |
| 1328 | if (DDS::RETCODE_OK != retGetKey) { |
| 1329 | ACE_ERROR((LM_ERROR, |
| 1330 | ACE_TEXT("(%P|%t) ERROR: DCPS_IR_Domain::dispose_topic_bit ") |
| 1331 | ACE_TEXT("Unable to get_key_value for topic ptr 0x%x handle %d. ") |
| 1332 | ACE_TEXT("Call returned %d.\n"), |
| 1333 | topic, |
| 1334 | handle, |
| 1335 | retGetKey)); |
| 1336 | } |
| 1337 | |
| 1338 | DDS::ReturnCode_t retDispose = |
| 1339 | bitTopicDataWriter_->dispose(key_data, |
| 1340 | handle); |
| 1341 | |
| 1342 | if (DDS::RETCODE_OK != retDispose) { |
| 1343 | ACE_ERROR((LM_ERROR, |
| 1344 | ACE_TEXT("(%P|%t) ERROR: DCPS_IR_Domain::dispose_topic_bit ") |
| 1345 | ACE_TEXT("Unable to dispose for topic ptr 0x%x handle %d. ") |
| 1346 | ACE_TEXT("Call returned %d.\n"), |
| 1347 | topic, |
| 1348 | handle, |
| 1349 | retDispose)); |
| 1350 | } |
| 1351 | |
| 1352 | } catch (const CORBA::Exception& ex) { |
| 1353 | ex._tao_print_exception( |
| 1354 | "(%P|%t) ERROR: Exception caught in DCPS_IR_Domain::dispose_topic_bit:"); |
| 1355 | } |
| 1356 | } |
| 1357 | } |
| 1358 | |
| 1359 | #else |
| 1360 | ACE_UNUSED_ARG(topic); |
| 1361 | #endif // !defined (DDS_HAS_MINIMUM_BIT) |
| 1362 | } |
| 1363 | |
| 1364 | void DCPS_IR_Domain::dispose_subscription_bit(DCPS_IR_Subscription* subscription) |
| 1365 | { |
nothing calls this directly
no test coverage detected