MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / remove_topic

Method remove_topic

dds/InfoRepo/DCPS_IR_Topic_Description.cpp:160–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160int 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
186DCPS_IR_Topic* DCPS_IR_Topic_Description::get_first_topic()
187{

Callers

nothing calls this directly

Calls 2

removeMethod · 0.45
get_idMethod · 0.45

Tested by

no test coverage detected