|
22 | 22 | // We must explicitly declare the specializations of the templates |
23 | 23 | %template(OctetSeq) std::vector<eprosima::fastrtps::rtps::octet>; |
24 | 24 |
|
25 | | -// Although explicitly deleted, SWIG still tries to create this method |
26 | | -%ignore eprosima::fastrtps::types::ReturnCode_t::operator bool; |
27 | | - |
28 | 25 | // Ignore overloaded constructors |
29 | 26 | %ignore eprosima::fastrtps::types::MemberFlag::MemberFlag(MemberFlag &&); |
30 | 27 | %ignore eprosima::fastrtps::types::TypeFlag::TypeFlag(TypeFlag &&); |
|
43 | 40 | %ignore eprosima::fastrtps::types::operator==; |
44 | 41 | %ignore eprosima::fastrtps::types::operator!=; |
45 | 42 |
|
46 | | -%include "fastrtps/types/TypesBase.h" |
47 | | - |
48 | | -%extend eprosima::fastrtps::types::ReturnCode_t { |
49 | | - std::string __str__() const |
50 | | - { |
51 | | - std::ostringstream out; |
52 | | - out << (*$self)(); |
53 | | - return out.str(); |
54 | | - } |
| 43 | +%ignore eprosima::fastrtps::types::RETCODE_OK; |
| 44 | +%ignore eprosima::fastrtps::types::RETCODE_ERROR; |
| 45 | +%ignore eprosima::fastrtps::types::RETCODE_UNSUPPORTED; |
| 46 | +%ignore eprosima::fastrtps::types::RETCODE_BAD_PARAMETER; |
| 47 | +%ignore eprosima::fastrtps::types::RETCODE_PRECONDITION_NOT_MET; |
| 48 | +%ignore eprosima::fastrtps::types::RETCODE_OUT_OF_RESOURCES; |
| 49 | +%ignore eprosima::fastrtps::types::RETCODE_NOT_ENABLED; |
| 50 | +%ignore eprosima::fastrtps::types::RETCODE_IMMUTABLE_POLICY; |
| 51 | +%ignore eprosima::fastrtps::types::RETCODE_INCONSISTENT_POLICY; |
| 52 | +%ignore eprosima::fastrtps::types::RETCODE_ALREADY_DELETED; |
| 53 | +%ignore eprosima::fastrtps::types::RETCODE_TIMEOUT; |
| 54 | +%ignore eprosima::fastrtps::types::RETCODE_NO_DATA; |
| 55 | +%ignore eprosima::fastrtps::types::RETCODE_ILLEGAL_OPERATION; |
55 | 56 |
|
56 | | - bool operator==(eprosima::fastrtps::types::ReturnCode_t::ReturnCodeValue value) const |
57 | | - { |
58 | | - return *$self == value; |
59 | | - } |
60 | 57 |
|
61 | | - bool operator!=(eprosima::fastrtps::types::ReturnCode_t::ReturnCodeValue value) const |
62 | | - { |
63 | | - return *$self != value; |
64 | | - } |
65 | | -} |
| 58 | +%include "fastrtps/types/TypesBase.h" |
0 commit comments