@ -13,13 +13,13 @@
// limitations under the License.
/*!
* @ file System TypeObjectSupport. cxx
* @ file WeighingDDSType TypeObjectSupport. cxx
* Source file containing the implementation to register the TypeObject representation of the described types in the IDL file
*
* This file was generated by the tool fastddsgen .
*/
# include " System TypeObjectSupport.hpp"
# include " WeighingDDSType TypeObjectSupport.hpp"
# include <mutex>
# include <string>
@ -33,7 +33,7 @@
# include <fastdds/dds/xtypes/type_representation/TypeObject.hpp>
# include <fastdds/dds/xtypes/type_representation/TypeObjectUtils.hpp>
# include " System .hpp"
# include " WeighingDDSType .hpp"
using namespace eprosima : : fastdds : : dds : : xtypes ;
@ -1319,6 +1319,158 @@ void register_WeightInfoOk_type_identifier(
CompleteStructMember member_IsPrintTicker = TypeObjectUtils : : build_complete_struct_member ( common_IsPrintTicker , detail_IsPrintTicker ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_WeightInfoOk , member_IsPrintTicker ) ;
}
{
TypeIdentifierPair type_ids_OrderNumber ;
ReturnCode_t return_code_OrderNumber { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_OrderNumber =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_string_unbounded " , type_ids_OrderNumber ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_OrderNumber )
{
{
SBound bound = 0 ;
StringSTypeDefn string_sdefn = TypeObjectUtils : : build_string_s_type_defn ( bound ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_s_string_type_identifier ( string_sdefn ,
" anonymous_string_unbounded " , type_ids_OrderNumber ) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_string_unbounded already registered in TypeObjectRegistry for a different type. " ) ;
}
}
}
StructMemberFlag member_flags_OrderNumber = TypeObjectUtils : : build_struct_member_flag ( eprosima : : fastdds : : dds : : xtypes : : TryConstructFailAction : : DISCARD ,
false , false , false , false ) ;
MemberId member_id_OrderNumber = 0x0000001c ;
bool common_OrderNumber_ec { false } ;
CommonStructMember common_OrderNumber { TypeObjectUtils : : build_common_struct_member ( member_id_OrderNumber , member_flags_OrderNumber , TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_OrderNumber , common_OrderNumber_ec ) ) } ;
if ( ! common_OrderNumber_ec )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION , " Structure OrderNumber member TypeIdentifier inconsistent. " ) ;
return ;
}
MemberName name_OrderNumber = " OrderNumber " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_OrderNumber ;
ann_custom_WeightInfoOk . reset ( ) ;
CompleteMemberDetail detail_OrderNumber = TypeObjectUtils : : build_complete_member_detail ( name_OrderNumber , member_ann_builtin_OrderNumber , ann_custom_WeightInfoOk ) ;
CompleteStructMember member_OrderNumber = TypeObjectUtils : : build_complete_struct_member ( common_OrderNumber , detail_OrderNumber ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_WeightInfoOk , member_OrderNumber ) ;
}
{
TypeIdentifierPair type_ids_VehicleAndVesselNumber ;
ReturnCode_t return_code_VehicleAndVesselNumber { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_VehicleAndVesselNumber =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_string_unbounded " , type_ids_VehicleAndVesselNumber ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_VehicleAndVesselNumber )
{
{
SBound bound = 0 ;
StringSTypeDefn string_sdefn = TypeObjectUtils : : build_string_s_type_defn ( bound ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_s_string_type_identifier ( string_sdefn ,
" anonymous_string_unbounded " , type_ids_VehicleAndVesselNumber ) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_string_unbounded already registered in TypeObjectRegistry for a different type. " ) ;
}
}
}
StructMemberFlag member_flags_VehicleAndVesselNumber = TypeObjectUtils : : build_struct_member_flag ( eprosima : : fastdds : : dds : : xtypes : : TryConstructFailAction : : DISCARD ,
false , false , false , false ) ;
MemberId member_id_VehicleAndVesselNumber = 0x0000001d ;
bool common_VehicleAndVesselNumber_ec { false } ;
CommonStructMember common_VehicleAndVesselNumber { TypeObjectUtils : : build_common_struct_member ( member_id_VehicleAndVesselNumber , member_flags_VehicleAndVesselNumber , TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_VehicleAndVesselNumber , common_VehicleAndVesselNumber_ec ) ) } ;
if ( ! common_VehicleAndVesselNumber_ec )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION , " Structure VehicleAndVesselNumber member TypeIdentifier inconsistent. " ) ;
return ;
}
MemberName name_VehicleAndVesselNumber = " VehicleAndVesselNumber " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_VehicleAndVesselNumber ;
ann_custom_WeightInfoOk . reset ( ) ;
CompleteMemberDetail detail_VehicleAndVesselNumber = TypeObjectUtils : : build_complete_member_detail ( name_VehicleAndVesselNumber , member_ann_builtin_VehicleAndVesselNumber , ann_custom_WeightInfoOk ) ;
CompleteStructMember member_VehicleAndVesselNumber = TypeObjectUtils : : build_complete_struct_member ( common_VehicleAndVesselNumber , detail_VehicleAndVesselNumber ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_WeightInfoOk , member_VehicleAndVesselNumber ) ;
}
{
TypeIdentifierPair type_ids_ReceiveCompany ;
ReturnCode_t return_code_ReceiveCompany { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_ReceiveCompany =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_string_unbounded " , type_ids_ReceiveCompany ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_ReceiveCompany )
{
{
SBound bound = 0 ;
StringSTypeDefn string_sdefn = TypeObjectUtils : : build_string_s_type_defn ( bound ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_s_string_type_identifier ( string_sdefn ,
" anonymous_string_unbounded " , type_ids_ReceiveCompany ) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_string_unbounded already registered in TypeObjectRegistry for a different type. " ) ;
}
}
}
StructMemberFlag member_flags_ReceiveCompany = TypeObjectUtils : : build_struct_member_flag ( eprosima : : fastdds : : dds : : xtypes : : TryConstructFailAction : : DISCARD ,
false , false , false , false ) ;
MemberId member_id_ReceiveCompany = 0x0000001e ;
bool common_ReceiveCompany_ec { false } ;
CommonStructMember common_ReceiveCompany { TypeObjectUtils : : build_common_struct_member ( member_id_ReceiveCompany , member_flags_ReceiveCompany , TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_ReceiveCompany , common_ReceiveCompany_ec ) ) } ;
if ( ! common_ReceiveCompany_ec )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION , " Structure ReceiveCompany member TypeIdentifier inconsistent. " ) ;
return ;
}
MemberName name_ReceiveCompany = " ReceiveCompany " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_ReceiveCompany ;
ann_custom_WeightInfoOk . reset ( ) ;
CompleteMemberDetail detail_ReceiveCompany = TypeObjectUtils : : build_complete_member_detail ( name_ReceiveCompany , member_ann_builtin_ReceiveCompany , ann_custom_WeightInfoOk ) ;
CompleteStructMember member_ReceiveCompany = TypeObjectUtils : : build_complete_struct_member ( common_ReceiveCompany , detail_ReceiveCompany ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_WeightInfoOk , member_ReceiveCompany ) ;
}
{
TypeIdentifierPair type_ids_TransportCompany ;
ReturnCode_t return_code_TransportCompany { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_TransportCompany =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_string_unbounded " , type_ids_TransportCompany ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_TransportCompany )
{
{
SBound bound = 0 ;
StringSTypeDefn string_sdefn = TypeObjectUtils : : build_string_s_type_defn ( bound ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_s_string_type_identifier ( string_sdefn ,
" anonymous_string_unbounded " , type_ids_TransportCompany ) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_string_unbounded already registered in TypeObjectRegistry for a different type. " ) ;
}
}
}
StructMemberFlag member_flags_TransportCompany = TypeObjectUtils : : build_struct_member_flag ( eprosima : : fastdds : : dds : : xtypes : : TryConstructFailAction : : DISCARD ,
false , false , false , false ) ;
MemberId member_id_TransportCompany = 0x0000001f ;
bool common_TransportCompany_ec { false } ;
CommonStructMember common_TransportCompany { TypeObjectUtils : : build_common_struct_member ( member_id_TransportCompany , member_flags_TransportCompany , TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_TransportCompany , common_TransportCompany_ec ) ) } ;
if ( ! common_TransportCompany_ec )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION , " Structure TransportCompany member TypeIdentifier inconsistent. " ) ;
return ;
}
MemberName name_TransportCompany = " TransportCompany " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_TransportCompany ;
ann_custom_WeightInfoOk . reset ( ) ;
CompleteMemberDetail detail_TransportCompany = TypeObjectUtils : : build_complete_member_detail ( name_TransportCompany , member_ann_builtin_TransportCompany , ann_custom_WeightInfoOk ) ;
CompleteStructMember member_TransportCompany = TypeObjectUtils : : build_complete_struct_member ( common_TransportCompany , detail_TransportCompany ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_WeightInfoOk , member_TransportCompany ) ;
}
CompleteStructType struct_type_WeightInfoOk = TypeObjectUtils : : build_complete_struct_type ( struct_flags_WeightInfoOk , header_WeightInfoOk , member_seq_WeightInfoOk ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_struct_type_object ( struct_type_WeightInfoOk , type_name_WeightInfoOk . to_string ( ) , type_ids_WeightInfoOk ) )
@ -2498,29 +2650,26 @@ void register_SummaryUpdate_type_identifier(
}
}
}
} // namespace WeighingSystem
namespace InternalSystem {
// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method
void register_ Print Req_type_identifier(
TypeIdentifierPair & type_ids_ Print Req)
void register_ReadCardReq_type_identifier (
TypeIdentifierPair & type_ids_ReadCardReq )
{
ReturnCode_t return_code_ Print Req { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_ Print Req =
ReturnCode_t return_code_ ReadCard Req { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_ ReadCard Req =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" InternalSystem::PrintReq" , type_ids_Print Req) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_ Print Req)
" WeighingSystem::ReadCardReq" , type_ids_ReadCard Req) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_ ReadCard Req)
{
StructTypeFlag struct_flags_ Print Req = TypeObjectUtils : : build_struct_type_flag ( eprosima : : fastdds : : dds : : xtypes : : ExtensibilityKind : : APPENDABLE ,
StructTypeFlag struct_flags_ ReadCard Req = TypeObjectUtils : : build_struct_type_flag ( eprosima : : fastdds : : dds : : xtypes : : ExtensibilityKind : : APPENDABLE ,
false , false ) ;
QualifiedTypeName type_name_ PrintReq = " InternalSystem::Print Req" ;
eprosima : : fastcdr : : optional < AppliedBuiltinTypeAnnotations > type_ann_builtin_ Print Req;
eprosima : : fastcdr : : optional < AppliedAnnotationSeq > ann_custom_ Print Req;
CompleteTypeDetail detail_ Print Req = TypeObjectUtils : : build_complete_type_detail ( type_ann_builtin_ PrintReq, ann_custom_PrintReq , type_name_Print Req. to_string ( ) ) ;
CompleteStructHeader header_ Print Req;
header_ Print Req = TypeObjectUtils : : build_complete_struct_header ( TypeIdentifier ( ) , detail_ Print Req) ;
CompleteStructMemberSeq member_seq_ Print Req;
QualifiedTypeName type_name_ ReadCardReq = " WeighingSystem::ReadCard Req" ;
eprosima : : fastcdr : : optional < AppliedBuiltinTypeAnnotations > type_ann_builtin_ ReadCard Req;
eprosima : : fastcdr : : optional < AppliedAnnotationSeq > ann_custom_ ReadCard Req;
CompleteTypeDetail detail_ ReadCard Req = TypeObjectUtils : : build_complete_type_detail ( type_ann_builtin_ ReadCardReq, ann_custom_ReadCardReq , type_name_ReadCard Req. to_string ( ) ) ;
CompleteStructHeader header_ ReadCard Req;
header_ ReadCard Req = TypeObjectUtils : : build_complete_struct_header ( TypeIdentifier ( ) , detail_ ReadCard Req) ;
CompleteStructMemberSeq member_seq_ ReadCard Req;
{
TypeIdentifierPair type_ids_index ;
ReturnCode_t return_code_index { eprosima : : fastdds : : dds : : RETCODE_OK } ;
@ -2546,44 +2695,68 @@ void register_PrintReq_type_identifier(
}
MemberName name_index = " index " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_index ;
ann_custom_ Print Req. reset ( ) ;
CompleteMemberDetail detail_index = TypeObjectUtils : : build_complete_member_detail ( name_index , member_ann_builtin_index , ann_custom_ Print Req) ;
ann_custom_ ReadCard Req. reset ( ) ;
CompleteMemberDetail detail_index = TypeObjectUtils : : build_complete_member_detail ( name_index , member_ann_builtin_index , ann_custom_ ReadCard Req) ;
CompleteStructMember member_index = TypeObjectUtils : : build_complete_struct_member ( common_index , detail_index ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ Print Req, member_index ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ ReadCard Req, member_index ) ;
}
{
TypeIdentifierPair type_ids_msg ;
ReturnCode_t return_code_msg { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_msg =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded" , type_ids_msg ) ;
" anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded" , type_ids_msg ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_msg )
{
return_code_msg =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_s tring _unbounded" , type_ids_msg ) ;
" anonymous_s equence_byte _unbounded" , type_ids_msg ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_msg )
{
return_code_msg =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" _byte " , type_ids_msg ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_msg )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" Sequence element TypeIdentifier unknown to TypeObjectRegistry. " ) ;
return ;
}
bool element_identifier_anonymous_sequence_byte_unbounded_ec { false } ;
TypeIdentifier * element_identifier_anonymous_sequence_byte_unbounded { new TypeIdentifier ( TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_msg , element_identifier_anonymous_sequence_byte_unbounded_ec ) ) } ;
if ( ! element_identifier_anonymous_sequence_byte_unbounded_ec )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION , " Sequence element TypeIdentifier inconsistent. " ) ;
return ;
}
EquivalenceKind equiv_kind_anonymous_sequence_byte_unbounded = EK_COMPLETE ;
if ( TK_NONE = = type_ids_msg . type_identifier2 ( ) . _d ( ) )
{
equiv_kind_anonymous_sequence_byte_unbounded = EK_BOTH ;
}
CollectionElementFlag element_flags_anonymous_sequence_byte_unbounded = 0 ;
PlainCollectionHeader header_anonymous_sequence_byte_unbounded = TypeObjectUtils : : build_plain_collection_header ( equiv_kind_anonymous_sequence_byte_unbounded , element_flags_anonymous_sequence_byte_unbounded ) ;
{
SBound bound = 0 ;
StringSTypeDefn string_sdefn = TypeObjectUtils : : build_string_s_type_defn ( bound ) ;
PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils : : build_plain_sequence_s_elem_defn ( header_anonymous_sequence_byte_unbounded , bound ,
eprosima : : fastcdr : : external < TypeIdentifier > ( element_identifier_anonymous_sequence_byte_unbounded ) ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_s_string_type_identifier ( string_sdefn ,
" anonymous_string_unbounded " , type_ids_msg ) )
TypeObjectUtils : : build_and_register_s_sequence_type_identifier ( seq_sdefn , " anonymous_sequence_byte_unbounded " , type_ids_msg ) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_string_unbounded already registered in TypeObjectRegistry for a different type. " ) ;
" anonymous_s equence_byte _unbounded already registered in TypeObjectRegistry for a different type." ) ;
}
}
}
bool element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec { false } ;
TypeIdentifier * element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded { new TypeIdentifier ( TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_msg , element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec ) ) } ;
if ( ! element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec )
bool element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded_ec { false } ;
TypeIdentifier * element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded { new TypeIdentifier ( TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_msg , element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded_ec) ) } ;
if ( ! element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded_ec)
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier. " ) ;
" anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded inconsistent element TypeIdentifier." ) ;
return ;
}
return_code_msg =
@ -2604,38 +2777,38 @@ void register_PrintReq_type_identifier(
}
}
}
bool key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded_ec { false } ;
TypeIdentifier * key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded { new TypeIdentifier ( TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_msg , key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded_ec) ) } ;
if ( ! key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded_ec)
bool key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded_ec { false } ;
TypeIdentifier * key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded { new TypeIdentifier ( TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_msg , key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded_ec) ) } ;
if ( ! key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded_ec)
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded inconsistent key TypeIdentifier." ) ;
" anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded inconsistent key TypeIdentifier." ) ;
return ;
}
EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded = EK_BOTH ;
if ( ( EK_COMPLETE = = key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > _d ( ) ) | |
( TI_PLAIN_SEQUENCE_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > seq_sdefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_SEQUENCE_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > seq_ldefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_ARRAY_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > array_sdefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_ARRAY_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > array_ldefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_MAP_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > _d ( ) & & ( EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > map_sdefn ( ) . key_identifier ( ) - > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > map_sdefn ( ) . header ( ) . equiv_kind ( ) ) ) | |
( TI_PLAIN_MAP_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > _d ( ) & & ( EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > map_ldefn ( ) . key_identifier ( ) - > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded- > map_ldefn ( ) . header ( ) . equiv_kind ( ) ) ) )
EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded = EK_BOTH ;
if ( ( EK_COMPLETE = = key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > _d ( ) ) | |
( TI_PLAIN_SEQUENCE_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > seq_sdefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_SEQUENCE_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > seq_ldefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_ARRAY_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > array_sdefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_ARRAY_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > array_ldefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_MAP_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > _d ( ) & & ( EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > map_sdefn ( ) . key_identifier ( ) - > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > map_sdefn ( ) . header ( ) . equiv_kind ( ) ) ) | |
( TI_PLAIN_MAP_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > _d ( ) & & ( EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > map_ldefn ( ) . key_identifier ( ) - > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded- > map_ldefn ( ) . header ( ) . equiv_kind ( ) ) ) )
{
equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded = EK_COMPLETE ;
equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded = EK_COMPLETE ;
}
CollectionElementFlag element_flags_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded = 0 ;
CollectionElementFlag key_flags_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded = 0 ;
PlainCollectionHeader header_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded = TypeObjectUtils : : build_plain_collection_header ( equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded, element_flags_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded) ;
CollectionElementFlag element_flags_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded = 0 ;
CollectionElementFlag key_flags_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded = 0 ;
PlainCollectionHeader header_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded = TypeObjectUtils : : build_plain_collection_header ( equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded, element_flags_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded) ;
{
SBound bound = 0 ;
PlainMapSTypeDefn map_sdefn = TypeObjectUtils : : build_plain_map_s_type_defn ( header_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded, bound ,
eprosima : : fastcdr : : external < TypeIdentifier > ( element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded) , key_flags_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded,
eprosima : : fastcdr : : external < TypeIdentifier > ( key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded) ) ;
PlainMapSTypeDefn map_sdefn = TypeObjectUtils : : build_plain_map_s_type_defn ( header_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded, bound ,
eprosima : : fastcdr : : external < TypeIdentifier > ( element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded) , key_flags_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded,
eprosima : : fastcdr : : external < TypeIdentifier > ( key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded) ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_s_map_type_identifier ( map_sdefn , " anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded" , type_ids_msg ) )
TypeObjectUtils : : build_and_register_s_map_type_identifier ( map_sdefn , " anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded" , type_ids_msg ) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_map_anonymous_string_unbounded_anonymous_s tring _unbounded_unbounded already registered in TypeObjectRegistry for a different type." ) ;
" anonymous_map_anonymous_string_unbounded_anonymous_s equence_byte _unbounded_unbounded already registered in TypeObjectRegistry for a different type." ) ;
}
}
}
@ -2651,40 +2824,40 @@ void register_PrintReq_type_identifier(
}
MemberName name_msg = " msg " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_msg ;
ann_custom_ Print Req. reset ( ) ;
CompleteMemberDetail detail_msg = TypeObjectUtils : : build_complete_member_detail ( name_msg , member_ann_builtin_msg , ann_custom_ Print Req) ;
ann_custom_ ReadCard Req. reset ( ) ;
CompleteMemberDetail detail_msg = TypeObjectUtils : : build_complete_member_detail ( name_msg , member_ann_builtin_msg , ann_custom_ ReadCard Req) ;
CompleteStructMember member_msg = TypeObjectUtils : : build_complete_struct_member ( common_msg , detail_msg ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ Print Req, member_msg ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ ReadCard Req, member_msg ) ;
}
CompleteStructType struct_type_ Print Req = TypeObjectUtils : : build_complete_struct_type ( struct_flags_ PrintReq, header_PrintReq , member_seq_Print Req) ;
CompleteStructType struct_type_ ReadCard Req = TypeObjectUtils : : build_complete_struct_type ( struct_flags_ ReadCardReq, header_ReadCardReq , member_seq_ReadCard Req) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_struct_type_object ( struct_type_ PrintReq, type_name_PrintReq . to_string ( ) , type_ids_Print Req) )
TypeObjectUtils : : build_and_register_struct_type_object ( struct_type_ ReadCardReq, type_name_ReadCardReq . to_string ( ) , type_ids_ReadCard Req) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" InternalSystem::Print Req already registered in TypeObjectRegistry for a different type." ) ;
" WeighingSystem::ReadCard Req already registered in TypeObjectRegistry for a different type." ) ;
}
}
}
// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method
void register_ Print Rsp_type_identifier(
TypeIdentifierPair & type_ids_ Print Rsp)
void register_ ReadCard Rsp_type_identifier(
TypeIdentifierPair & type_ids_ ReadCard Rsp)
{
ReturnCode_t return_code_ Print Rsp { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_ Print Rsp =
ReturnCode_t return_code_ ReadCard Rsp { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_ ReadCard Rsp =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" InternalSystem::PrintRsp" , type_ids_Print Rsp) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_ Print Rsp)
" WeighingSystem::ReadCardRsp" , type_ids_ReadCard Rsp) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_ ReadCard Rsp)
{
StructTypeFlag struct_flags_ Print Rsp = TypeObjectUtils : : build_struct_type_flag ( eprosima : : fastdds : : dds : : xtypes : : ExtensibilityKind : : APPENDABLE ,
StructTypeFlag struct_flags_ ReadCard Rsp = TypeObjectUtils : : build_struct_type_flag ( eprosima : : fastdds : : dds : : xtypes : : ExtensibilityKind : : APPENDABLE ,
false , false ) ;
QualifiedTypeName type_name_ PrintRsp = " InternalSystem::Print Rsp" ;
eprosima : : fastcdr : : optional < AppliedBuiltinTypeAnnotations > type_ann_builtin_ Print Rsp;
eprosima : : fastcdr : : optional < AppliedAnnotationSeq > ann_custom_ Print Rsp;
CompleteTypeDetail detail_ Print Rsp = TypeObjectUtils : : build_complete_type_detail ( type_ann_builtin_ PrintRsp, ann_custom_PrintRsp , type_name_Print Rsp. to_string ( ) ) ;
CompleteStructHeader header_ Print Rsp;
header_ Print Rsp = TypeObjectUtils : : build_complete_struct_header ( TypeIdentifier ( ) , detail_ Print Rsp) ;
CompleteStructMemberSeq member_seq_ Print Rsp;
QualifiedTypeName type_name_ ReadCardRsp = " WeighingSystem::ReadCard Rsp" ;
eprosima : : fastcdr : : optional < AppliedBuiltinTypeAnnotations > type_ann_builtin_ ReadCard Rsp;
eprosima : : fastcdr : : optional < AppliedAnnotationSeq > ann_custom_ ReadCard Rsp;
CompleteTypeDetail detail_ ReadCard Rsp = TypeObjectUtils : : build_complete_type_detail ( type_ann_builtin_ ReadCardRsp, ann_custom_ReadCardRsp , type_name_ReadCard Rsp. to_string ( ) ) ;
CompleteStructHeader header_ ReadCard Rsp;
header_ ReadCard Rsp = TypeObjectUtils : : build_complete_struct_header ( TypeIdentifier ( ) , detail_ ReadCard Rsp) ;
CompleteStructMemberSeq member_seq_ ReadCard Rsp;
{
TypeIdentifierPair type_ids_index ;
ReturnCode_t return_code_index { eprosima : : fastdds : : dds : : RETCODE_OK } ;
@ -2710,14 +2883,70 @@ void register_PrintRsp_type_identifier(
}
MemberName name_index = " index " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_index ;
ann_custom_ Print Rsp. reset ( ) ;
CompleteMemberDetail detail_index = TypeObjectUtils : : build_complete_member_detail ( name_index , member_ann_builtin_index , ann_custom_ Print Rsp) ;
ann_custom_ ReadCard Rsp. reset ( ) ;
CompleteMemberDetail detail_index = TypeObjectUtils : : build_complete_member_detail ( name_index , member_ann_builtin_index , ann_custom_ ReadCard Rsp) ;
CompleteStructMember member_index = TypeObjectUtils : : build_complete_struct_member ( common_index , detail_index ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ Print Rsp, member_index ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ ReadCard Rsp, member_index ) ;
}
{
TypeIdentifierPair type_ids_msg ;
ReturnCode_t return_code_msg { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_msg =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded " , type_ids_msg ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_msg )
{
return_code_msg =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_sequence_byte_unbounded " , type_ids_msg ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_msg )
{
return_code_msg =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" _byte " , type_ids_msg ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_msg )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" Sequence element TypeIdentifier unknown to TypeObjectRegistry. " ) ;
return ;
}
bool element_identifier_anonymous_sequence_byte_unbounded_ec { false } ;
TypeIdentifier * element_identifier_anonymous_sequence_byte_unbounded { new TypeIdentifier ( TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_msg , element_identifier_anonymous_sequence_byte_unbounded_ec ) ) } ;
if ( ! element_identifier_anonymous_sequence_byte_unbounded_ec )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION , " Sequence element TypeIdentifier inconsistent. " ) ;
return ;
}
EquivalenceKind equiv_kind_anonymous_sequence_byte_unbounded = EK_COMPLETE ;
if ( TK_NONE = = type_ids_msg . type_identifier2 ( ) . _d ( ) )
{
equiv_kind_anonymous_sequence_byte_unbounded = EK_BOTH ;
}
CollectionElementFlag element_flags_anonymous_sequence_byte_unbounded = 0 ;
PlainCollectionHeader header_anonymous_sequence_byte_unbounded = TypeObjectUtils : : build_plain_collection_header ( equiv_kind_anonymous_sequence_byte_unbounded , element_flags_anonymous_sequence_byte_unbounded ) ;
{
SBound bound = 0 ;
PlainSequenceSElemDefn seq_sdefn = TypeObjectUtils : : build_plain_sequence_s_elem_defn ( header_anonymous_sequence_byte_unbounded , bound ,
eprosima : : fastcdr : : external < TypeIdentifier > ( element_identifier_anonymous_sequence_byte_unbounded ) ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_s_sequence_type_identifier ( seq_sdefn , " anonymous_sequence_byte_unbounded " , type_ids_msg ) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_sequence_byte_unbounded already registered in TypeObjectRegistry for a different type. " ) ;
}
}
}
bool element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded_ec { false } ;
TypeIdentifier * element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded { new TypeIdentifier ( TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_msg , element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded_ec ) ) } ;
if ( ! element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded_ec )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded inconsistent element TypeIdentifier. " ) ;
return ;
}
return_code_msg =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_string_unbounded " , type_ids_msg ) ;
@ -2736,6 +2965,41 @@ void register_PrintRsp_type_identifier(
}
}
}
bool key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded_ec { false } ;
TypeIdentifier * key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded { new TypeIdentifier ( TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_msg , key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded_ec ) ) } ;
if ( ! key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded_ec )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded inconsistent key TypeIdentifier. " ) ;
return ;
}
EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded = EK_BOTH ;
if ( ( EK_COMPLETE = = key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > _d ( ) ) | |
( TI_PLAIN_SEQUENCE_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > seq_sdefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_SEQUENCE_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > seq_ldefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_ARRAY_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > array_sdefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_ARRAY_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > array_ldefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_MAP_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > _d ( ) & & ( EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > map_sdefn ( ) . key_identifier ( ) - > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > map_sdefn ( ) . header ( ) . equiv_kind ( ) ) ) | |
( TI_PLAIN_MAP_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > _d ( ) & & ( EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > map_ldefn ( ) . key_identifier ( ) - > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded - > map_ldefn ( ) . header ( ) . equiv_kind ( ) ) ) )
{
equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded = EK_COMPLETE ;
}
CollectionElementFlag element_flags_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded = 0 ;
CollectionElementFlag key_flags_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded = 0 ;
PlainCollectionHeader header_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded = TypeObjectUtils : : build_plain_collection_header ( equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded , element_flags_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded ) ;
{
SBound bound = 0 ;
PlainMapSTypeDefn map_sdefn = TypeObjectUtils : : build_plain_map_s_type_defn ( header_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded , bound ,
eprosima : : fastcdr : : external < TypeIdentifier > ( element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded ) , key_flags_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded ,
eprosima : : fastcdr : : external < TypeIdentifier > ( key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded ) ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_s_map_type_identifier ( map_sdefn , " anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded " , type_ids_msg ) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_map_anonymous_string_unbounded_anonymous_sequence_byte_unbounded_unbounded already registered in TypeObjectRegistry for a different type. " ) ;
}
}
}
StructMemberFlag member_flags_msg = TypeObjectUtils : : build_struct_member_flag ( eprosima : : fastdds : : dds : : xtypes : : TryConstructFailAction : : DISCARD ,
false , false , false , false ) ;
MemberId member_id_msg = 0x00000001 ;
@ -2748,40 +3012,40 @@ void register_PrintRsp_type_identifier(
}
MemberName name_msg = " msg " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_msg ;
ann_custom_ Print Rsp. reset ( ) ;
CompleteMemberDetail detail_msg = TypeObjectUtils : : build_complete_member_detail ( name_msg , member_ann_builtin_msg , ann_custom_ Print Rsp) ;
ann_custom_ ReadCard Rsp. reset ( ) ;
CompleteMemberDetail detail_msg = TypeObjectUtils : : build_complete_member_detail ( name_msg , member_ann_builtin_msg , ann_custom_ ReadCard Rsp) ;
CompleteStructMember member_msg = TypeObjectUtils : : build_complete_struct_member ( common_msg , detail_msg ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ Print Rsp, member_msg ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ ReadCard Rsp, member_msg ) ;
}
CompleteStructType struct_type_ Print Rsp = TypeObjectUtils : : build_complete_struct_type ( struct_flags_ PrintRsp, header_PrintRsp , member_seq_Print Rsp) ;
CompleteStructType struct_type_ ReadCard Rsp = TypeObjectUtils : : build_complete_struct_type ( struct_flags_ ReadCardRsp, header_ReadCardRsp , member_seq_ReadCard Rsp) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_struct_type_object ( struct_type_ PrintRsp, type_name_PrintRsp . to_string ( ) , type_ids_Print Rsp) )
TypeObjectUtils : : build_and_register_struct_type_object ( struct_type_ ReadCardRsp, type_name_ReadCardRsp . to_string ( ) , type_ids_ReadCard Rsp) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" InternalSystem::Print Rsp already registered in TypeObjectRegistry for a different type." ) ;
" WeighingSystem::ReadCard Rsp already registered in TypeObjectRegistry for a different type." ) ;
}
}
}
// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method
void register_ IoCtrl Req_type_identifier(
TypeIdentifierPair & type_ids_ IoCtrl Req)
void register_ Print Req_type_identifier(
TypeIdentifierPair & type_ids_ Print Req)
{
ReturnCode_t return_code_ IoCtrl Req { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_ IoCtrl Req =
ReturnCode_t return_code_ Print Req { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_ Print Req =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" InternalSystem::IoCtrlReq" , type_ids_IoCtrl Req) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_ IoCtrl Req)
" WeighingSystem::PrintReq" , type_ids_Print Req) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_ Print Req)
{
StructTypeFlag struct_flags_ IoCtrl Req = TypeObjectUtils : : build_struct_type_flag ( eprosima : : fastdds : : dds : : xtypes : : ExtensibilityKind : : APPENDABLE ,
StructTypeFlag struct_flags_ Print Req = TypeObjectUtils : : build_struct_type_flag ( eprosima : : fastdds : : dds : : xtypes : : ExtensibilityKind : : APPENDABLE ,
false , false ) ;
QualifiedTypeName type_name_ IoCtrlReq = " InternalSystem::IoCtrl Req" ;
eprosima : : fastcdr : : optional < AppliedBuiltinTypeAnnotations > type_ann_builtin_ IoCtrl Req;
eprosima : : fastcdr : : optional < AppliedAnnotationSeq > ann_custom_ IoCtrl Req;
CompleteTypeDetail detail_ IoCtrl Req = TypeObjectUtils : : build_complete_type_detail ( type_ann_builtin_ IoCtrlReq, ann_custom_IoCtrlReq , type_name_IoCtrl Req. to_string ( ) ) ;
CompleteStructHeader header_ IoCtrl Req;
header_ IoCtrl Req = TypeObjectUtils : : build_complete_struct_header ( TypeIdentifier ( ) , detail_ IoCtrl Req) ;
CompleteStructMemberSeq member_seq_ IoCtrl Req;
QualifiedTypeName type_name_ PrintReq = " WeighingSystem::Print Req" ;
eprosima : : fastcdr : : optional < AppliedBuiltinTypeAnnotations > type_ann_builtin_ Print Req;
eprosima : : fastcdr : : optional < AppliedAnnotationSeq > ann_custom_ Print Req;
CompleteTypeDetail detail_ Print Req = TypeObjectUtils : : build_complete_type_detail ( type_ann_builtin_ PrintReq, ann_custom_PrintReq , type_name_Print Req. to_string ( ) ) ;
CompleteStructHeader header_ Print Req;
header_ Print Req = TypeObjectUtils : : build_complete_struct_header ( TypeIdentifier ( ) , detail_ Print Req) ;
CompleteStructMemberSeq member_seq_ Print Req;
{
TypeIdentifierPair type_ids_index ;
ReturnCode_t return_code_index { eprosima : : fastdds : : dds : : RETCODE_OK } ;
@ -2807,10 +3071,10 @@ void register_IoCtrlReq_type_identifier(
}
MemberName name_index = " index " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_index ;
ann_custom_ IoCtrl Req. reset ( ) ;
CompleteMemberDetail detail_index = TypeObjectUtils : : build_complete_member_detail ( name_index , member_ann_builtin_index , ann_custom_ IoCtrl Req) ;
ann_custom_ Print Req. reset ( ) ;
CompleteMemberDetail detail_index = TypeObjectUtils : : build_complete_member_detail ( name_index , member_ann_builtin_index , ann_custom_ Print Req) ;
CompleteStructMember member_index = TypeObjectUtils : : build_complete_struct_member ( common_index , detail_index ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ IoCtrl Req, member_index ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ Print Req, member_index ) ;
}
{
TypeIdentifierPair type_ids_msg ;
@ -2912,40 +3176,40 @@ void register_IoCtrlReq_type_identifier(
}
MemberName name_msg = " msg " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_msg ;
ann_custom_ IoCtrl Req. reset ( ) ;
CompleteMemberDetail detail_msg = TypeObjectUtils : : build_complete_member_detail ( name_msg , member_ann_builtin_msg , ann_custom_ IoCtrl Req) ;
ann_custom_ Print Req. reset ( ) ;
CompleteMemberDetail detail_msg = TypeObjectUtils : : build_complete_member_detail ( name_msg , member_ann_builtin_msg , ann_custom_ Print Req) ;
CompleteStructMember member_msg = TypeObjectUtils : : build_complete_struct_member ( common_msg , detail_msg ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ IoCtrl Req, member_msg ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ Print Req, member_msg ) ;
}
CompleteStructType struct_type_ IoCtrl Req = TypeObjectUtils : : build_complete_struct_type ( struct_flags_ IoCtrlReq, header_IoCtrlReq , member_seq_IoCtrl Req) ;
CompleteStructType struct_type_ Print Req = TypeObjectUtils : : build_complete_struct_type ( struct_flags_ PrintReq, header_PrintReq , member_seq_Print Req) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_struct_type_object ( struct_type_ IoCtrlReq, type_name_IoCtrlReq . to_string ( ) , type_ids_IoCtrl Req) )
TypeObjectUtils : : build_and_register_struct_type_object ( struct_type_ PrintReq, type_name_PrintReq . to_string ( ) , type_ids_Print Req) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" InternalSystem::IoCtrl Req already registered in TypeObjectRegistry for a different type." ) ;
" WeighingSystem::Print Req already registered in TypeObjectRegistry for a different type." ) ;
}
}
}
// TypeIdentifier is returned by reference: dependent structures/unions are registered in this same method
void register_ IoCtrl Rsp_type_identifier(
TypeIdentifierPair & type_ids_ IoCtrl Rsp)
void register_ Print Rsp_type_identifier(
TypeIdentifierPair & type_ids_ Print Rsp)
{
ReturnCode_t return_code_ IoCtrl Rsp { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_ IoCtrl Rsp =
ReturnCode_t return_code_ Print Rsp { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_ Print Rsp =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" InternalSystem::IoCtrlRsp" , type_ids_IoCtrl Rsp) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_ IoCtrl Rsp)
" WeighingSystem::PrintRsp" , type_ids_Print Rsp) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_ Print Rsp)
{
StructTypeFlag struct_flags_ IoCtrl Rsp = TypeObjectUtils : : build_struct_type_flag ( eprosima : : fastdds : : dds : : xtypes : : ExtensibilityKind : : APPENDABLE ,
StructTypeFlag struct_flags_ Print Rsp = TypeObjectUtils : : build_struct_type_flag ( eprosima : : fastdds : : dds : : xtypes : : ExtensibilityKind : : APPENDABLE ,
false , false ) ;
QualifiedTypeName type_name_ IoCtrlRsp = " InternalSystem::IoCtrl Rsp" ;
eprosima : : fastcdr : : optional < AppliedBuiltinTypeAnnotations > type_ann_builtin_ IoCtrl Rsp;
eprosima : : fastcdr : : optional < AppliedAnnotationSeq > ann_custom_ IoCtrl Rsp;
CompleteTypeDetail detail_ IoCtrl Rsp = TypeObjectUtils : : build_complete_type_detail ( type_ann_builtin_ IoCtrlRsp, ann_custom_IoCtrlRsp , type_name_IoCtrl Rsp. to_string ( ) ) ;
CompleteStructHeader header_ IoCtrl Rsp;
header_ IoCtrl Rsp = TypeObjectUtils : : build_complete_struct_header ( TypeIdentifier ( ) , detail_ IoCtrl Rsp) ;
CompleteStructMemberSeq member_seq_ IoCtrl Rsp;
QualifiedTypeName type_name_ PrintRsp = " WeighingSystem::Print Rsp" ;
eprosima : : fastcdr : : optional < AppliedBuiltinTypeAnnotations > type_ann_builtin_ Print Rsp;
eprosima : : fastcdr : : optional < AppliedAnnotationSeq > ann_custom_ Print Rsp;
CompleteTypeDetail detail_ Print Rsp = TypeObjectUtils : : build_complete_type_detail ( type_ann_builtin_ PrintRsp, ann_custom_PrintRsp , type_name_Print Rsp. to_string ( ) ) ;
CompleteStructHeader header_ Print Rsp;
header_ Print Rsp = TypeObjectUtils : : build_complete_struct_header ( TypeIdentifier ( ) , detail_ Print Rsp) ;
CompleteStructMemberSeq member_seq_ Print Rsp;
{
TypeIdentifierPair type_ids_index ;
ReturnCode_t return_code_index { eprosima : : fastdds : : dds : : RETCODE_OK } ;
@ -2971,20 +3235,14 @@ void register_IoCtrlRsp_type_identifier(
}
MemberName name_index = " index " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_index ;
ann_custom_ IoCtrl Rsp. reset ( ) ;
CompleteMemberDetail detail_index = TypeObjectUtils : : build_complete_member_detail ( name_index , member_ann_builtin_index , ann_custom_ IoCtrl Rsp) ;
ann_custom_ Print Rsp. reset ( ) ;
CompleteMemberDetail detail_index = TypeObjectUtils : : build_complete_member_detail ( name_index , member_ann_builtin_index , ann_custom_ Print Rsp) ;
CompleteStructMember member_index = TypeObjectUtils : : build_complete_struct_member ( common_index , detail_index ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ IoCtrl Rsp, member_index ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ Print Rsp, member_index ) ;
}
{
TypeIdentifierPair type_ids_msg ;
ReturnCode_t return_code_msg { eprosima : : fastdds : : dds : : RETCODE_OK } ;
return_code_msg =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded " , type_ids_msg ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_msg )
{
return_code_msg =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_string_unbounded " , type_ids_msg ) ;
@ -3003,67 +3261,6 @@ void register_IoCtrlRsp_type_identifier(
}
}
}
bool element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec { false } ;
TypeIdentifier * element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded { new TypeIdentifier ( TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_msg , element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec ) ) } ;
if ( ! element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded inconsistent element TypeIdentifier. " ) ;
return ;
}
return_code_msg =
eprosima : : fastdds : : dds : : DomainParticipantFactory : : get_instance ( ) - > type_object_registry ( ) . get_type_identifiers (
" anonymous_string_unbounded " , type_ids_msg ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_OK ! = return_code_msg )
{
{
SBound bound = 0 ;
StringSTypeDefn string_sdefn = TypeObjectUtils : : build_string_s_type_defn ( bound ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_s_string_type_identifier ( string_sdefn ,
" anonymous_string_unbounded " , type_ids_msg ) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_string_unbounded already registered in TypeObjectRegistry for a different type. " ) ;
}
}
}
bool key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec { false } ;
TypeIdentifier * key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded { new TypeIdentifier ( TypeObjectUtils : : retrieve_complete_type_identifier ( type_ids_msg , key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec ) ) } ;
if ( ! key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded_ec )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded inconsistent key TypeIdentifier. " ) ;
return ;
}
EquivalenceKind equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded = EK_BOTH ;
if ( ( EK_COMPLETE = = key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > _d ( ) ) | |
( TI_PLAIN_SEQUENCE_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > seq_sdefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_SEQUENCE_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > seq_ldefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_ARRAY_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > array_sdefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_ARRAY_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > _d ( ) & & EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > array_ldefn ( ) . header ( ) . equiv_kind ( ) ) | |
( TI_PLAIN_MAP_SMALL = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > _d ( ) & & ( EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > map_sdefn ( ) . key_identifier ( ) - > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > map_sdefn ( ) . header ( ) . equiv_kind ( ) ) ) | |
( TI_PLAIN_MAP_LARGE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > _d ( ) & & ( EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > map_ldefn ( ) . key_identifier ( ) - > _d ( ) | | EK_COMPLETE = = element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded - > map_ldefn ( ) . header ( ) . equiv_kind ( ) ) ) )
{
equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded = EK_COMPLETE ;
}
CollectionElementFlag element_flags_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded = 0 ;
CollectionElementFlag key_flags_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded = 0 ;
PlainCollectionHeader header_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded = TypeObjectUtils : : build_plain_collection_header ( equiv_kind_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded , element_flags_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded ) ;
{
SBound bound = 0 ;
PlainMapSTypeDefn map_sdefn = TypeObjectUtils : : build_plain_map_s_type_defn ( header_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded , bound ,
eprosima : : fastcdr : : external < TypeIdentifier > ( element_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded ) , key_flags_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded ,
eprosima : : fastcdr : : external < TypeIdentifier > ( key_identifier_anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded ) ) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_s_map_type_identifier ( map_sdefn , " anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded " , type_ids_msg ) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" anonymous_map_anonymous_string_unbounded_anonymous_string_unbounded_unbounded already registered in TypeObjectRegistry for a different type. " ) ;
}
}
}
StructMemberFlag member_flags_msg = TypeObjectUtils : : build_struct_member_flag ( eprosima : : fastdds : : dds : : xtypes : : TryConstructFailAction : : DISCARD ,
false , false , false , false ) ;
MemberId member_id_msg = 0x00000001 ;
@ -3076,20 +3273,20 @@ void register_IoCtrlRsp_type_identifier(
}
MemberName name_msg = " msg " ;
eprosima : : fastcdr : : optional < AppliedBuiltinMemberAnnotations > member_ann_builtin_msg ;
ann_custom_ IoCtrl Rsp. reset ( ) ;
CompleteMemberDetail detail_msg = TypeObjectUtils : : build_complete_member_detail ( name_msg , member_ann_builtin_msg , ann_custom_ IoCtrl Rsp) ;
ann_custom_ Print Rsp. reset ( ) ;
CompleteMemberDetail detail_msg = TypeObjectUtils : : build_complete_member_detail ( name_msg , member_ann_builtin_msg , ann_custom_ Print Rsp) ;
CompleteStructMember member_msg = TypeObjectUtils : : build_complete_struct_member ( common_msg , detail_msg ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ IoCtrl Rsp, member_msg ) ;
TypeObjectUtils : : add_complete_struct_member ( member_seq_ Print Rsp, member_msg ) ;
}
CompleteStructType struct_type_ IoCtrl Rsp = TypeObjectUtils : : build_complete_struct_type ( struct_flags_ IoCtrlRsp, header_IoCtrlRsp , member_seq_IoCtrl Rsp) ;
CompleteStructType struct_type_ Print Rsp = TypeObjectUtils : : build_complete_struct_type ( struct_flags_ PrintRsp, header_PrintRsp , member_seq_Print Rsp) ;
if ( eprosima : : fastdds : : dds : : RETCODE_BAD_PARAMETER = =
TypeObjectUtils : : build_and_register_struct_type_object ( struct_type_ IoCtrlRsp, type_name_IoCtrlRsp . to_string ( ) , type_ids_IoCtrl Rsp) )
TypeObjectUtils : : build_and_register_struct_type_object ( struct_type_ PrintRsp, type_name_PrintRsp . to_string ( ) , type_ids_Print Rsp) )
{
EPROSIMA_LOG_ERROR ( XTYPES_TYPE_REPRESENTATION ,
" InternalSystem::IoCtrl Rsp already registered in TypeObjectRegistry for a different type." ) ;
" WeighingSystem::Print Rsp already registered in TypeObjectRegistry for a different type." ) ;
}
}
}
} // namespace Internal System
} // namespace Weighing System