Skip to content

Commit

Permalink
TypeObjectRegistry refactor (#349)
Browse files Browse the repository at this point in the history
* Refs #21044. Intermediate commit

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #21044. Stable commit

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #21044. Setting TopicDataType::type_identifiers_

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #21044. Fix warnings

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #21044. More TryConstructKind standard

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #21044. More ExtensibilityKind standard

Signed-off-by: Ricardo González Moreno <[email protected]>

---------

Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware authored Jun 14, 2024
1 parent a8df86e commit 5aebc95
Show file tree
Hide file tree
Showing 5 changed files with 719 additions and 853 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public:
void* data) override;

//Register TypeObject representation in Fast DDS TypeObjectRegistry
eProsima_user_DllExport void register_type_object_representation() const override;
eProsima_user_DllExport void register_type_object_representation() override;

#ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED
eProsima_user_DllExport inline bool is_bounded() const override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ bool $struct.name$PubSubType::getKey(
return true;
}

void $struct.name$PubSubType::register_type_object_representation() const
void $struct.name$PubSubType::register_type_object_representation()
{
$if (ctx.generateTypeObjectSupport)$
register_$ctx.filename$_type_objects();
register_$struct.name$_type_identifier(type_identifiers_);
$else$
EPROSIMA_LOG_WARNING(XTYPES_TYPE_REPRESENTATION,
"TypeObject type representation support disabled in generated code");
Expand Down
Loading

0 comments on commit 5aebc95

Please sign in to comment.