| 158 | } |
| 159 | |
| 160 | int DCPS_IR_Topic_Description::remove_topic(DCPS_IR_Topic* topic) |
| 161 | { |
| 162 | int status = topics_.remove(topic); |
| 163 | |
| 164 | if (0 == status) { |
| 165 | if (OpenDDS::DCPS::DCPS_debug_level > 0) { |
| 166 | OpenDDS::DCPS::RepoIdConverter converter(topic->get_id()); |
| 167 | ACE_DEBUG((LM_DEBUG, |
| 168 | ACE_TEXT("(%P|%t) DCPS_IR_Topic_Description::remove_topic: ") |
| 169 | ACE_TEXT("topic description %C removed topic %C.\n"), |
| 170 | this->name_.c_str(), |
| 171 | std::string(converter).c_str())); |
| 172 | } |
| 173 | |
| 174 | } else { |
| 175 | OpenDDS::DCPS::RepoIdConverter converter(topic->get_id()); |
| 176 | ACE_ERROR((LM_ERROR, |
| 177 | ACE_TEXT("(%P|%t) ERROR: DCPS_IR_Topic_Description::remove_topic: ") |
| 178 | ACE_TEXT("topic description failed to remove topic %C.\n"), |
| 179 | this->name_.c_str(), |
| 180 | std::string(converter).c_str())); |
| 181 | } |
| 182 | |
| 183 | return status; |
| 184 | } |
| 185 | |
| 186 | DCPS_IR_Topic* DCPS_IR_Topic_Description::get_first_topic() |
| 187 | { |