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

Function copy

tests/DCPS/QueryCondition/QueryConditionTest.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31bool dynamic = false;
32
33void copy(Message& out, DynamicData* in, const SampleInfo& info)
34{
35 if (info.valid_data) {
36 in->get_int32_value(out.key, in->get_member_id_by_name("key"));
37 in->get_int32_value(out.iteration, in->get_member_id_by_name("iteration"));
38 in->get_string_value(out.name.inout(), in->get_member_id_by_name("name"));
39 DynamicData_var nested;
40 in->get_complex_value(nested, in->get_member_id_by_name("nest"));
41 nested->get_int32_value(reinterpret_cast<ACE_CDR::Long&>(out.nest.value),
42 nested->get_member_id_by_name("value"));
43 }
44}
45
46void copy(MessageSeq& out, const DynamicDataSeq& in, const SampleInfoSeq& infos)
47{

Callers 8

takeMethod · 0.70
take_next_sampleMethod · 0.70
fields_arrayMethod · 0.50
TEST_FFunction · 0.50
TEST_FFunction · 0.50
copyMethod · 0.50
copyMethod · 0.50
TESTFunction · 0.50

Calls 6

get_int32_valueMethod · 0.45
get_member_id_by_nameMethod · 0.45
get_string_valueMethod · 0.45
inoutMethod · 0.45
get_complex_valueMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected