Skip to content

Commit 6b1355a

Browse files
committed
Refs #23543. Regenerate code with Fast DDS Gen from related PR.
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
1 parent 36d257a commit 6b1355a

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

fastdds_python/test/types/test_complete.i

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ namespace swig {
233233
eprosima::fastcdr::fixed_string<16> tmp(value);
234234
$self->fixed_string_field(tmp);
235235
}
236+
237+
std::string fixed_string_field_str() const
238+
{
239+
return std::string($self->fixed_string_field(), strnlen($self->fixed_string_field(), 16));
240+
}
236241
}
237242

238243

@@ -444,6 +449,11 @@ namespace swig {
444449
eprosima::fastcdr::fixed_string<16> tmp(value);
445450
$self->fixed_string_field(tmp);
446451
}
452+
453+
std::string fixed_string_field_str() const
454+
{
455+
return std::string($self->fixed_string_field(), strnlen($self->fixed_string_field(), 16));
456+
}
447457
}
448458

449459

@@ -1699,6 +1709,11 @@ namespace swig {
16991709
eprosima::fastcdr::fixed_string<16> tmp(value);
17001710
$self->fixed_string_field(tmp);
17011711
}
1712+
1713+
std::string fixed_string_field_str() const
1714+
{
1715+
return std::string($self->fixed_string_field(), strnlen($self->fixed_string_field(), 16));
1716+
}
17021717
}
17031718

17041719

fastdds_python/test/types/test_modules.i

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ namespace swig {
232232
eprosima::fastcdr::fixed_string<16> tmp(value);
233233
$self->fixed_string_field(tmp);
234234
}
235+
236+
std::string fixed_string_field_str() const
237+
{
238+
return std::string($self->fixed_string_field(), strnlen($self->fixed_string_field(), 16));
239+
}
235240
}
236241

237242

@@ -432,6 +437,11 @@ namespace swig {
432437
eprosima::fastcdr::fixed_string<16> tmp(value);
433438
$self->fixed_string_field(tmp);
434439
}
440+
441+
std::string fixed_string_field_str() const
442+
{
443+
return std::string($self->fixed_string_field(), strnlen($self->fixed_string_field(), 16));
444+
}
435445
}
436446

437447

@@ -1687,6 +1697,11 @@ namespace swig {
16871697
eprosima::fastcdr::fixed_string<16> tmp(value);
16881698
$self->fixed_string_field(tmp);
16891699
}
1700+
1701+
std::string fixed_string_field_str() const
1702+
{
1703+
return std::string($self->fixed_string_field(), strnlen($self->fixed_string_field(), 16));
1704+
}
16901705
}
16911706

16921707

0 commit comments

Comments
 (0)