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

Function vwrite_array

dds/DCPS/XTypes/DynamicVwrite.cpp:1371–1389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1369}
1370
1371bool vwrite_array(ValueWriter& vw, DDS::DynamicData_ptr value, const DDS::DynamicType_var& dt)
1372{
1373 DDS::TypeDescriptor_var td;
1374 DDS::ReturnCode_t rc = dt->get_descriptor(td);
1375 if (rc != DDS::RETCODE_OK) {
1376 if (log_level >= LogLevel::Notice) {
1377 ACE_ERROR((LM_NOTICE, "(%P|%t) NOTICE: vwrite_array: get_descriptor failed (%C)\n",
1378 retcode_to_string(rc)));
1379 }
1380 return false;
1381 }
1382
1383 DDS::DynamicType_var elem_type = XTypes::get_base_type(td->element_type());
1384 const DDS::BoundSeq& dims = td->bound();
1385 DDS::BoundSeq idx_vec;
1386 idx_vec.length(dims.length());
1387
1388 return vwrite_array_helper(vw, 0, dims, idx_vec, elem_type, value);
1389}
1390
1391bool vwrite_sequence(ValueWriter& vw, DDS::DynamicData_ptr value, const DDS::DynamicType_var& dt)
1392{

Callers 1

vwriteFunction · 0.85

Calls 7

retcode_to_stringFunction · 0.85
get_base_typeFunction · 0.85
vwrite_array_helperFunction · 0.85
element_typeMethod · 0.80
boundMethod · 0.80
get_descriptorMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected