Functions | |
template<typename Key > | |
int | find (OpenDDS::DCPS::DomainParticipantImpl::TopicMap &c, const Key &key, OpenDDS::DCPS::DomainParticipantImpl::TopicMap::mapped_type *&value) |
DDS::PropertySeq | filter_properties (const DDS::PropertySeq &properties, const std::string &prefix) |
DDS::PropertySeq Util::filter_properties | ( | const DDS::PropertySeq & | properties, | |
const std::string & | prefix | |||
) |
Definition at line 65 of file DomainParticipantImpl.cpp.
Referenced by OpenDDS::DCPS::DomainParticipantImpl::enable().
00066 { 00067 DDS::PropertySeq result(properties.length()); 00068 result.length(properties.length()); 00069 size_t count = 0; 00070 for (size_t i = 0, len = properties.length(); i < len; ++i) { 00071 if (std::string(properties[i].name.in()).find(prefix) == 0) { 00072 result[count++] = properties[i]; 00073 } 00074 } 00075 result.length(count); 00076 return result; 00077 }
int Util::find | ( | OpenDDS::DCPS::DomainParticipantImpl::TopicMap & | c, | |
const Key & | key, | |||
OpenDDS::DCPS::DomainParticipantImpl::TopicMap::mapped_type *& | value | |||
) | [inline] |
Definition at line 49 of file DomainParticipantImpl.cpp.
Referenced by OpenDDS::DCPS::DomainParticipantImpl::create_topic_i(), OpenDDS::DCPS::DomainParticipantImpl::delete_topic_i(), filter_properties(), OpenDDS::DCPS::DomainParticipantImpl::find_topic(), OpenDDS::Security::SecurityRegistry::get_plugin_inst(), TAO_DDS_DCPSInfo_i::init_transport(), and OpenDDS::DCPS::DomainParticipantImpl::lookup_topicdescription().
00053 { 00054 OpenDDS::DCPS::DomainParticipantImpl::TopicMap::iterator iter = 00055 c.find(key); 00056 00057 if (iter == c.end()) { 00058 return -1; 00059 } 00060 00061 value = &iter->second; 00062 return 0; 00063 }