@@ -55,6 +55,15 @@ $definitions; separator="\n"$
55
55
$"\n"$
56
56
>>
57
57
58
+ module(ctx, parent, module, definition_list) ::= <<
59
+ $definition_list$
60
+ >>
61
+
62
+ definition_list(definitions) ::= <<
63
+ $definitions; separator="\n"$
64
+
65
+ >>
66
+
58
67
fast_macro_declarations() ::= <<
59
68
// Macro declarations
60
69
// Any macro used on the Fast DDS header files will give an error if it is not redefined here
@@ -64,27 +73,27 @@ fast_macro_declarations() ::= <<
64
73
65
74
struct_type(ctx, parent, struct, extensions) ::= <<
66
75
////////////////////////////////////////////////////////
67
- // Binding for class $struct.name $
76
+ // Binding for class $struct.scopedname $
68
77
////////////////////////////////////////////////////////
69
78
70
79
// Ignore overloaded methods that have no application on Python
71
80
// Otherwise they will issue a warning
72
- %ignore $struct.name $::$struct.name$($struct.name $&&);
81
+ %ignore $struct.scopedname $::$struct.name$($struct.scopedname $&&);
73
82
74
83
// Overloaded getter methods shadow each other and are equivalent in python
75
84
// Avoid a warning ignoring all but one
76
- $struct.members : {$member_getters(struct_name=struct.name , member=it)$}; separator="\n"$
85
+ $struct.members : {$member_getters(struct_name=struct.scopedname , member=it)$}; separator="\n"$
77
86
78
- %template(_$struct.name$Seq) eprosima::fastdds::dds::LoanableTypedCollection<$struct.name $, std::false_type>;
79
- %template($struct.name$Seq) eprosima::fastdds::dds::LoanableSequence<$struct.name $, std::false_type>;
80
- %extend eprosima::fastdds::dds::LoanableSequence<$struct.name $, std::false_type>
87
+ %template(_$struct.name$Seq) eprosima::fastdds::dds::LoanableTypedCollection<$struct.scopedname $, std::false_type>;
88
+ %template($struct.name$Seq) eprosima::fastdds::dds::LoanableSequence<$struct.scopedname $, std::false_type>;
89
+ %extend eprosima::fastdds::dds::LoanableSequence<$struct.scopedname $, std::false_type>
81
90
{
82
91
size_t __len__() const
83
92
{
84
93
return self->length();
85
94
}
86
95
87
- const $struct.name $& __getitem__(size_t i) const
96
+ const $struct.scopedname $& __getitem__(size_t i) const
88
97
{
89
98
return (*self)[i];
90
99
}
@@ -129,7 +138,7 @@ $if(member.typecode.isSequenceType)$
129
138
$template_sequence(member.typecode)$
130
139
$elseif(member.typecode.isMapType)$
131
140
%ignore $struct_name$::$member.name$() const;
132
- %template($member.typecode.keyTypeCode.cppTypename $_$member.typecode.valueTypeCode.cppTypename$_map) std::map<$member.typecode.keyTypeCode.cppTypename$,$member.typecode.valueTypeCode.cppTypename$>;
141
+ %template($member.typecode.keyTypeCode.name $_$member.typecode.valueTypeCode.cppTypename$_map) std::map<$member.typecode.keyTypeCode.cppTypename$,$member.typecode.valueTypeCode.cppTypename$>;
133
142
$elseif(member.typecode.isType_f)$
134
143
%ignore $struct_name$::$member.name$() const;
135
144
%template($member.typecode.contentTypeCode.formatedCppTypename$_$member.typecode.dimensions$_array) std::array<$member.typecode.contentTypeCode.cppTypename$,$member.typecode.dimensions$>;
0 commit comments