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

Method remove_publication_reference

dds/InfoRepo/DCPS_IR_Topic.cpp:115–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115int 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
143int DCPS_IR_Topic::add_subscription_reference(DCPS_IR_Subscription* subscription
144 , bool associate)

Callers 2

remove_publicationMethod · 0.80
remove_all_dependentsMethod · 0.80

Calls 2

removeMethod · 0.45
get_idMethod · 0.45

Tested by

no test coverage detected