| 113 | } |
| 114 | |
| 115 | int DCPS_IR_Topic::remove_publication_reference(DCPS_IR_Publication* publication) |
| 116 | { |
| 117 | int status = publicationRefs_.remove(publication); |
| 118 | |
| 119 | if (0 == status) { |
| 120 | if (OpenDDS::DCPS::DCPS_debug_level > 0) { |
| 121 | OpenDDS::DCPS::RepoIdConverter topic_converter(id_); |
| 122 | OpenDDS::DCPS::RepoIdConverter pub_converter(publication->get_id()); |
| 123 | ACE_DEBUG((LM_DEBUG, |
| 124 | ACE_TEXT("(%P|%t) DCPS_IR_Topic::remove_publication_reference: ") |
| 125 | ACE_TEXT("topic %C removed publication %C.\n"), |
| 126 | std::string(topic_converter).c_str(), |
| 127 | std::string(pub_converter).c_str())); |
| 128 | } |
| 129 | |
| 130 | } else { |
| 131 | OpenDDS::DCPS::RepoIdConverter topic_converter(id_); |
| 132 | OpenDDS::DCPS::RepoIdConverter pub_converter(publication->get_id()); |
| 133 | ACE_ERROR((LM_ERROR, |
| 134 | ACE_TEXT("(%P|%t) ERROR: DCPS_IR_Topic::remove_publication_reference: ") |
| 135 | ACE_TEXT("topic %C failed to remove publication %C.\n"), |
| 136 | std::string(topic_converter).c_str(), |
| 137 | std::string(pub_converter).c_str())); |
| 138 | } |
| 139 | |
| 140 | return status; |
| 141 | } |
| 142 | |
| 143 | int DCPS_IR_Topic::add_subscription_reference(DCPS_IR_Subscription* subscription |
| 144 | , bool associate) |
no test coverage detected