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

Method has

dds/DCPS/ConfigStoreImpl.cpp:126–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126DDS::Boolean
127ConfigStoreImpl::has(const char* key)
128{
129 const ConfigPair cp(key, "");
130 DCPS::InternalDataReader<ConfigPair>::SampleSequence samples;
131 DCPS::InternalSampleInfoSequence infos;
132 config_reader_->read_instance(samples, infos, DDS::LENGTH_UNLIMITED, cp,
133 DDS::ANY_SAMPLE_STATE, DDS::ANY_VIEW_STATE, DDS::ALIVE_INSTANCE_STATE);
134 for (size_t idx = 0; idx != samples.size(); ++idx) {
135 const DDS::SampleInfo& info = infos[idx];
136 if (info.valid_data) {
137 return true;
138 }
139 }
140
141 return false;
142}
143
144void
145ConfigStoreImpl::set_boolean(const char* key,

Callers 15

parse_endpointsMethod · 0.45
process_sectionFunction · 0.45
check_create_topicMethod · 0.45
check_remote_topicMethod · 0.45

Calls 2

read_instanceMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected