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

Function extensibility

dds/DCPS/XTypes/Utils.cpp:27–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using DCPS::log_level;
26
27DDS::ReturnCode_t extensibility(DDS::DynamicType_ptr type, DCPS::Extensibility& ext)
28{
29 DDS::DynamicType_var base_type = get_base_type(type);
30 if (!base_type) {
31 return DDS::RETCODE_BAD_PARAMETER;
32 }
33 switch (base_type->get_kind()) {
34 case TK_STRUCTURE:
35 case TK_UNION:
36 {
37 DDS::TypeDescriptor_var td;
38 const DDS::ReturnCode_t rc = type->get_descriptor(td);
39 if (rc != DDS::RETCODE_OK) {
40 return rc;
41 }
42 ext = dds_to_opendds_ext(td->extensibility_kind());
43 }
44 break;
45 default:
46 ext = DCPS::FINAL;
47 }
48 return DDS::RETCODE_OK;
49}
50
51DDS::ReturnCode_t max_extensibility(DDS::DynamicType_ptr type, DCPS::Extensibility& ext)
52{

Callers 6

extensibilityMethod · 0.85
base_extensibilityMethod · 0.85
base_extensibilityMethod · 0.85
max_extensibilityFunction · 0.85
expect_extMethod · 0.85
baseline_checksFunction · 0.85

Calls 4

get_base_typeFunction · 0.85
dds_to_opendds_extFunction · 0.85
get_kindMethod · 0.80
get_descriptorMethod · 0.45

Tested by

no test coverage detected