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

Method get_nested

dds/DCPS/XTypes/DynamicTypeSupport.cpp:173–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 {}
172
173 XTypes::DynamicSample get_nested(void* outer) const
174 {
175 const XTypes::DynamicSample& outer_typed = *static_cast<XTypes::DynamicSample*>(outer);
176 const DDS::DynamicData_var outer_dd = outer_typed.dynamic_data();
177 DDS::DynamicData_var inner_dd;
178 const DDS::MemberId id = outer_dd->get_member_id_by_name(field_.c_str());
179 if (outer_dd->get_complex_value(inner_dd, id) != DDS::RETCODE_OK) {
180 return XTypes::DynamicSample();
181 }
182 return XTypes::DynamicSample(inner_dd);
183 }
184
185 bool less(void* lhs, void* rhs) const
186 {

Callers

nothing calls this directly

Calls 3

DynamicSampleFunction · 0.85
get_member_id_by_nameMethod · 0.45
get_complex_valueMethod · 0.45

Tested by

no test coverage detected