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

Method get_section_names

dds/DCPS/ConfigStoreImpl.cpp:1139–1162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1137}
1138
1139ConfigStoreImpl::StringList
1140ConfigStoreImpl::get_section_names(const String& prefix) const
1141{
1142 const String cprefix = ConfigPair::canonicalize(prefix);
1143
1144 ConfigReader::SampleSequence samples;
1145 DCPS::InternalSampleInfoSequence infos;
1146 config_reader_->read(samples, infos, DDS::LENGTH_UNLIMITED,
1147 DDS::ANY_SAMPLE_STATE, DDS::ANY_VIEW_STATE, DDS::ALIVE_INSTANCE_STATE);
1148 StringList retval;
1149 for (ConfigReader::SampleSequence::const_iterator pos = samples.begin(), limit = samples.end(); pos != limit; ++pos) {
1150 if (pos->key_has_prefix(cprefix) &&
1151 pos->key() != cprefix &&
1152 !pos->value().empty() &&
1153 pos->value().substr(0, 1) == "@") {
1154 const String name = pos->value().substr(1);
1155 if (ConfigPair::canonicalize(prefix + "_" + name) == pos->key()) {
1156 retval.push_back(name);
1157 }
1158 }
1159 }
1160
1161 return retval;
1162}
1163
1164ConfigStoreImpl::StringMap
1165ConfigStoreImpl::get_section_values(const String& prefix) const

Callers 13

parse_topicsMethod · 0.80
parse_datawriterqosMethod · 0.80
parse_datareaderqosMethod · 0.80
parse_publisherqosMethod · 0.80
parse_subscriberqosMethod · 0.80
parse_endpointsMethod · 0.80
load_domain_rangesMethod · 0.80
discovery_configMethod · 0.80
discovery_configMethod · 0.80

Calls 6

readMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
keyMethod · 0.45
emptyMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected