Util Namespace Reference

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)

Function Documentation

DDS::PropertySeq Util::filter_properties ( const DDS::PropertySeq properties,
const std::string &  prefix 
)

Definition at line 65 of file DomainParticipantImpl.cpp.

References find(), and len.

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   }

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Key >
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   }

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1