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

Method MoreSetup

tests/unit-tests/dds/DCPS/XTypes/DynamicTypeImpl.cpp:662–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660}
661
662void dds_DCPS_XTypes_DynamicTypeImpl::MoreSetup()
663{
664 XTypes::TypeIdentifierPairSeq tid_pairs;
665
666 XTypes::TypeIdentifierPair my_inner_struct_tids;
667 my_inner_struct_tids.type_identifier1 = DCPS::getCompleteTypeIdentifier<DCPS::MyModCompleteToDynamic_MyInnerStruct_xtag>();
668 my_inner_struct_tids.type_identifier2 = DCPS::getMinimalTypeIdentifier<DCPS::MyModCompleteToDynamic_MyInnerStruct_xtag>();
669 tid_pairs.append(my_inner_struct_tids);
670
671 XTypes::TypeIdentifierPair my_outer_struct_tids;
672 my_outer_struct_tids.type_identifier1 = DCPS::getCompleteTypeIdentifier<DCPS::MyModCompleteToDynamic_MyOuterStruct_xtag>();
673 my_outer_struct_tids.type_identifier2 = DCPS::getMinimalTypeIdentifier<DCPS::MyModCompleteToDynamic_MyOuterStruct_xtag>();
674 tid_pairs.append(my_outer_struct_tids);
675
676 XTypes::TypeIdentifierPair my_alias_struct_tids;
677 my_alias_struct_tids.type_identifier1 = DCPS::getCompleteTypeIdentifier<DCPS::MyModCompleteToDynamic_MyAliasStruct_xtag>();
678 my_alias_struct_tids.type_identifier2 = DCPS::getMinimalTypeIdentifier<DCPS::MyModCompleteToDynamic_MyAliasStruct_xtag>();
679 tid_pairs.append(my_alias_struct_tids);
680
681 XTypes::TypeIdentifierPair enum_tids;
682 enum_tids.type_identifier1 = DCPS::getCompleteTypeIdentifier<DCPS::MyModCompleteToDynamic_PrimitiveKind_xtag>();
683 enum_tids.type_identifier2 = DCPS::getMinimalTypeIdentifier<DCPS::MyModCompleteToDynamic_PrimitiveKind_xtag>();
684 tid_pairs.append(enum_tids);
685
686 XTypes::TypeIdentifierPair union_tids;
687 union_tids.type_identifier1 = DCPS::getCompleteTypeIdentifier<DCPS::MyModCompleteToDynamic_MyUnion_xtag>();
688 union_tids.type_identifier2 = DCPS::getMinimalTypeIdentifier<DCPS::MyModCompleteToDynamic_MyUnion_xtag>();
689 tid_pairs.append(union_tids);
690
691 XTypes::TypeIdentifierPair inner_array_tids;
692 inner_array_tids.type_identifier1 = DCPS::getCompleteTypeIdentifier<DCPS::MyModCompleteToDynamic_MyInnerArray_xtag>();
693 inner_array_tids.type_identifier2 = DCPS::getMinimalTypeIdentifier<DCPS::MyModCompleteToDynamic_MyInnerArray_xtag>();
694 tid_pairs.append(inner_array_tids);
695
696 XTypes::TypeIdentifierPair outer_array_tids;
697 outer_array_tids.type_identifier1 = DCPS::getCompleteTypeIdentifier<DCPS::MyModCompleteToDynamic_MyOuterArray_xtag>();
698 outer_array_tids.type_identifier2 = DCPS::getMinimalTypeIdentifier<DCPS::MyModCompleteToDynamic_MyOuterArray_xtag>();
699 tid_pairs.append(outer_array_tids);
700
701 XTypes::TypeIdentifierPair sequence_tids;
702 sequence_tids.type_identifier1 = DCPS::getCompleteTypeIdentifier<DCPS::MyModCompleteToDynamic_MySeq_xtag>();
703 sequence_tids.type_identifier2 = DCPS::getMinimalTypeIdentifier<DCPS::MyModCompleteToDynamic_MySeq_xtag>();
704 tid_pairs.append(sequence_tids);
705
706 XTypes::TypeIdentifierPair anon_struct_tids;
707 anon_struct_tids.type_identifier1 = DCPS::getCompleteTypeIdentifier<DCPS::MyModCompleteToDynamic_MyAnonStruct_xtag>();
708 anon_struct_tids.type_identifier2 = DCPS::getMinimalTypeIdentifier<DCPS::MyModCompleteToDynamic_MyAnonStruct_xtag>();
709 tid_pairs.append(anon_struct_tids);
710
711 tls_->update_type_identifier_map(tid_pairs);
712
713 MyModCompleteToDynamic::MyInnerStructTypeSupportImpl inner_typesupport;
714 MyModCompleteToDynamic::MyOuterStructTypeSupportImpl outer_typesupport;
715 MyModCompleteToDynamic::MyUnionTypeSupportImpl union_typesupport;
716 MyModCompleteToDynamic::MyAnonStructTypeSupportImpl anon_typesupport;
717 inner_typesupport.add_types(tls_);
718 outer_typesupport.add_types(tls_);
719 union_typesupport.add_types(tls_);

Callers

nothing calls this directly

Calls 3

appendMethod · 0.45
add_typesMethod · 0.45

Tested by

no test coverage detected