-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor XML Parser to return DynamicTypeBuilder instead of DynamicTy…
…pe (#4970) * Refs #21184: Refactor get_dynamic_type_builder_from_xml_by_name and getDynamicTypeByName to get a DynamicTypeBuilder Signed-off-by: elianalf <[email protected]> * Refs #21184: Adjust dynamic types tests Signed-off-by: elianalf <[email protected]> * Refs #21184: Add flag to xtypes example to get types and profiles from xml Signed-off-by: elianalf <[email protected]> * Refs #21184: Update methods name Signed-off-by: elianalf <[email protected]> * Refs #21184: Update version.md Signed-off-by: elianalf <[email protected]> * Refs #21184: Uncrustify Signed-off-by: elianalf <[email protected]> * Refs #21184: Make type definition by xml loaded by environment variable works Signed-off-by: elianalf <[email protected]> * Refs #21184: Make type works with hello world Signed-off-by: elianalf <[email protected]> * Refs #21184: Add test for the example to load the type from xml Signed-off-by: elianalf <[email protected]> * Refs #21184: Apply suggestions Signed-off-by: elianalf <[email protected]> * Refs #21184: UNcrustify Signed-off-by: elianalf <[email protected]> * Refs #21184: Clarify how to use xml-type flag Signed-off-by: elianalf <[email protected]> * Refs #21184: Fix xml parser test Signed-off-by: elianalf <[email protected]> * Refs #21184: Fix parse XML dynamic type throwing exception to return nullptr Signed-off-by: elianalf <[email protected]> * Refs #Apply suggestions Signed-off-by: elianalf <[email protected]> * Refs #21184: Compare DynamicType with DynamicType, instead of DynamicTypeBuilder Signed-off-by: elianalf <[email protected]> * Refs #21184: Fix xml parser las test Signed-off-by: elianalf <[email protected]> --------- Signed-off-by: elianalf <[email protected]>
- Loading branch information
Showing
18 changed files
with
372 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,63 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<profiles xmlns="http://www.eprosima.com" > | ||
<participant profile_name="xtypes_participant_profile" is_default_profile="true"> | ||
<domainId>0</domainId> | ||
<rtps> | ||
<name>xtypes_participant</name> | ||
</rtps> | ||
</participant> | ||
<data_writer profile_name="xtypes_datawriter_profile" is_default_profile="true"> | ||
<qos> | ||
<durability> | ||
<kind>TRANSIENT_LOCAL</kind> | ||
</durability> | ||
<reliability> | ||
<kind>RELIABLE</kind> | ||
</reliability> | ||
</qos> | ||
<topic> | ||
<historyQos> | ||
<kind>KEEP_LAST</kind> | ||
<depth>100</depth> | ||
</historyQos> | ||
<resourceLimitsQos> | ||
<max_samples>100</max_samples> | ||
<max_instances>1</max_instances> | ||
<max_samples_per_instance>100</max_samples_per_instance> | ||
</resourceLimitsQos> | ||
</topic> | ||
</data_writer> | ||
<dds xmlns="http://www.eprosima.com" > | ||
<profiles> | ||
<participant profile_name="xtypes_participant_profile" is_default_profile="true"> | ||
<domainId>0</domainId> | ||
<rtps> | ||
<name>xtypes_participant</name> | ||
</rtps> | ||
</participant> | ||
<data_writer profile_name="xtypes_datawriter_profile" is_default_profile="true"> | ||
<qos> | ||
<durability> | ||
<kind>TRANSIENT_LOCAL</kind> | ||
</durability> | ||
<reliability> | ||
<kind>RELIABLE</kind> | ||
</reliability> | ||
</qos> | ||
<topic> | ||
<historyQos> | ||
<kind>KEEP_LAST</kind> | ||
<depth>100</depth> | ||
</historyQos> | ||
<resourceLimitsQos> | ||
<max_samples>100</max_samples> | ||
<max_instances>1</max_instances> | ||
<max_samples_per_instance>100</max_samples_per_instance> | ||
</resourceLimitsQos> | ||
</topic> | ||
</data_writer> | ||
|
||
<data_reader profile_name="xtypes_datareader_profile" is_default_profile="true"> | ||
<qos> | ||
<durability> | ||
<kind>TRANSIENT_LOCAL</kind> | ||
</durability> | ||
<reliability> | ||
<kind>RELIABLE</kind> | ||
</reliability> | ||
</qos> | ||
<topic> | ||
<historyQos> | ||
<kind>KEEP_LAST</kind> | ||
<depth>100</depth> | ||
</historyQos> | ||
<resourceLimitsQos> | ||
<max_samples>100</max_samples> | ||
<max_instances>1</max_instances> | ||
<max_samples_per_instance>100</max_samples_per_instance> | ||
</resourceLimitsQos> | ||
</topic> | ||
</data_reader> | ||
</profiles> | ||
<data_reader profile_name="xtypes_datareader_profile" is_default_profile="true"> | ||
<qos> | ||
<durability> | ||
<kind>TRANSIENT_LOCAL</kind> | ||
</durability> | ||
<reliability> | ||
<kind>RELIABLE</kind> | ||
</reliability> | ||
</qos> | ||
<topic> | ||
<historyQos> | ||
<kind>KEEP_LAST</kind> | ||
<depth>100</depth> | ||
</historyQos> | ||
<resourceLimitsQos> | ||
<max_samples>100</max_samples> | ||
<max_instances>1</max_instances> | ||
<max_samples_per_instance>100</max_samples_per_instance> | ||
</resourceLimitsQos> | ||
</topic> | ||
</data_reader> | ||
</profiles> | ||
|
||
<types> | ||
<type> | ||
<struct name="HelloWorld"> | ||
<member name="index" type="uint32"/> | ||
<member name="message" type="string"/> | ||
</struct> | ||
</type> | ||
</types> | ||
</dds> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.