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

Method get_string

dds/DCPS/ConfigStoreImpl.cpp:447–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447char*
448ConfigStoreImpl::get_string(const char* key,
449 const char* value)
450{
451 const ConfigPair cp(key, "");
452 CORBA::String_var retval(value);
453
454 DCPS::InternalDataReader<ConfigPair>::SampleSequence samples;
455 DCPS::InternalSampleInfoSequence infos;
456 config_reader_->read_instance(samples, infos, DDS::LENGTH_UNLIMITED, cp,
457 DDS::ANY_SAMPLE_STATE, DDS::ANY_VIEW_STATE, DDS::ALIVE_INSTANCE_STATE);
458 for (size_t idx = 0; idx != samples.size(); ++idx) {
459 const ConfigPair& sample = samples[idx];
460 const DDS::SampleInfo& info = infos[idx];
461 if (info.valid_data) {
462 retval = sample.value().c_str();
463 }
464 }
465
466 if (debug_logging) {
467 ACE_DEBUG((LM_DEBUG, "(%P|%t) %C: ConfigStoreImpl::get_string: %C=%C\n",
468 CONFIG_DEBUG_LOGGING,
469 cp.key().c_str(),
470 retval.in()));
471
472 }
473
474 return retval._retn();
475}
476
477void
478ConfigStoreImpl::set_duration(const char* key,

Callers 15

FieldInfoMethod · 0.45
gen_enumMethod · 0.45
gen_structMethod · 0.45
gen_unionMethod · 0.45
get_annotation_member_evFunction · 0.45
gen_field_getValueFunction · 0.45
gen_field_createQCFunction · 0.45
get_raw_fieldFunction · 0.45
compare_fieldFunction · 0.45
ScopedNamespaceGuardMethod · 0.45

Calls 6

read_instanceMethod · 0.45
sizeMethod · 0.45
valueMethod · 0.45
keyMethod · 0.45
inMethod · 0.45
_retnMethod · 0.45

Tested by 2

testConfigStoreMethod · 0.36
mainMethod · 0.36