| 1212 | } |
| 1213 | |
| 1214 | bool |
| 1215 | take_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 | |
| 1231 | bool ConfigStoreImpl::debug_logging = CONFIG_DEBUG_LOGGING_default; |
| 1232 | bool ConfigStoreImpl::log_changes = CONFIG_LOG_CHANGES_default; |