File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
fastdds_python/test/types Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments