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

Function filter_properties

dds/DCPS/DomainParticipantImpl.cpp:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 DDS::PropertySeq filter_properties(const DDS::PropertySeq& properties, const std::string& prefix)
72 {
73 DDS::PropertySeq result(properties.length());
74 result.length(properties.length());
75 unsigned int count = 0;
76 for (unsigned int i = 0; i < properties.length(); ++i) {
77 if (std::string(properties[i].name.in()).find(prefix) == 0) {
78 result[count++] = properties[i];
79 }
80 }
81 result.length(count);
82 return result;
83 }
84
85} // namespace Util
86

Callers 1

enableMethod · 0.85

Calls 3

lengthMethod · 0.45
findMethod · 0.45
inMethod · 0.45

Tested by

no test coverage detected