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

Method copy_from

dds/DCPS/XTypes/MemberDescriptorImpl.cpp:51–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51DDS::ReturnCode_t MemberDescriptorImpl::copy_from(DDS::MemberDescriptor* other)
52{
53 if (!other) {
54 return DDS::RETCODE_BAD_PARAMETER;
55 }
56
57 name(other->name());
58 id(other->id());
59 type(other->type());
60 default_value(other->default_value());
61 index(other->index());
62 label(other->label());
63 try_construct_kind(other->try_construct_kind());
64 is_key(other->is_key());
65 is_optional(other->is_optional());
66 is_must_understand(other->is_must_understand());
67 is_shared(other->is_shared());
68 is_default_label(other->is_default_label());
69
70 return DDS::RETCODE_OK;
71}
72
73::CORBA::Boolean MemberDescriptorImpl::is_consistent()
74{

Callers

nothing calls this directly

Calls 10

is_keyFunction · 0.85
default_valueMethod · 0.80
indexMethod · 0.80
is_optionalMethod · 0.80
is_must_understandMethod · 0.80
nameFunction · 0.70
nameMethod · 0.45
idMethod · 0.45
typeMethod · 0.45
is_keyMethod · 0.45

Tested by

no test coverage detected