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

Function take_has_prefix

dds/DCPS/ConfigStoreImpl.cpp:1214–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1212}
1213
1214bool
1215take_has_prefix(ConfigReader_rch reader,
1216 const String& prefix)
1217{
1218 DCPS::InternalDataReader<ConfigPair>::SampleSequence samples;
1219 DCPS::InternalSampleInfoSequence infos;
1220 reader->take(samples, infos, DDS::LENGTH_UNLIMITED,
1221 DDS::ANY_SAMPLE_STATE, DDS::ANY_VIEW_STATE, DDS::ALIVE_INSTANCE_STATE);
1222 for (size_t idx = 0; idx != samples.size(); ++idx) {
1223 if (samples[idx].key_has_prefix(prefix)) {
1224 return true;
1225 }
1226 }
1227
1228 return false;
1229}
1230
1231bool ConfigStoreImpl::debug_logging = CONFIG_DEBUG_LOGGING_default;
1232bool ConfigStoreImpl::log_changes = CONFIG_LOG_CHANGES_default;

Callers 1

TESTFunction · 0.85

Calls 2

takeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected