1717
1818// Define a hash method in global scope for EntityId_t types
1919// This is necessary if we want other classes to hash an internal EntityId_t
20- long hash (const eprosima::fastrtps ::rtps::EntityId_t& id)
20+ long hash (const eprosima::fastdds ::rtps::EntityId_t& id)
2121{
2222 long ret = 0 ;
23- for (unsigned int i = 0 ; i < eprosima::fastrtps ::rtps::EntityId_t::size; ++i)
23+ for (unsigned int i = 0 ; i < eprosima::fastdds ::rtps::EntityId_t::size; ++i)
2424 {
2525 ret = (ret * 31 ) ^ id.value [i];
2626 }
@@ -29,13 +29,13 @@ long hash(const eprosima::fastrtps::rtps::EntityId_t& id)
2929%}
3030
3131// Overloaded constructor ignored
32- %ignore eprosima::fastrtps ::rtps::EntityId_t::EntityId_t (EntityId_t &&);
33- %ignore eprosima::fastrtps ::rtps::operator <<(std::ostream&, const EntityId_t&);
34- %ignore eprosima::fastrtps ::rtps::operator >>(std::istream&, EntityId_t&);
32+ %ignore eprosima::fastdds ::rtps::EntityId_t::EntityId_t (EntityId_t &&);
33+ %ignore eprosima::fastdds ::rtps::operator <<(std::ostream&, const EntityId_t&);
34+ %ignore eprosima::fastdds ::rtps::operator >>(std::istream&, EntityId_t&);
3535
3636// Operators declared outside the class conflict with those declared for other types
37- %ignore eprosima::fastrtps ::rtps::operator ==;
38- %ignore eprosima::fastrtps ::rtps::operator !=;
37+ %ignore eprosima::fastdds ::rtps::operator ==;
38+ %ignore eprosima::fastdds ::rtps::operator !=;
3939
4040// Declare hash so that we do not get a warning
4141// This will make an empty class on the target, but the user should not need this anyway.
@@ -44,7 +44,7 @@ namespace std {
4444 struct hash ;
4545}
4646
47- %typemap(in) eprosima::fastrtps ::rtps::octet[eprosima::fastrtps ::rtps::EntityId_t::size](eprosima::fastrtps ::rtps::octet temp[eprosima::fastrtps ::rtps::EntityId_t::size])
47+ %typemap(in) eprosima::fastdds ::rtps::octet[eprosima::fastdds ::rtps::EntityId_t::size](eprosima::fastdds ::rtps::octet temp[eprosima::fastdds ::rtps::EntityId_t::size])
4848{
4949 if (PyTuple_Check ($input))
5050 {
@@ -63,13 +63,13 @@ namespace std {
6363 }
6464}
6565
66- %typemap(out) eprosima::fastrtps ::rtps::octet[eprosima::fastrtps ::rtps::EntityId_t::size]
66+ %typemap(out) eprosima::fastdds ::rtps::octet[eprosima::fastdds ::rtps::EntityId_t::size]
6767{
68- PyObject* python_tuple = PyTuple_New (eprosima::fastrtps ::rtps::EntityId_t::size);
68+ PyObject* python_tuple = PyTuple_New (eprosima::fastdds ::rtps::EntityId_t::size);
6969
7070 if (python_tuple)
7171 {
72- for (size_t count = 0 ; count < eprosima::fastrtps ::rtps::EntityId_t::size; ++count)
72+ for (size_t count = 0 ; count < eprosima::fastdds ::rtps::EntityId_t::size; ++count)
7373 {
7474 PyTuple_SetItem (python_tuple, count, PyInt_FromLong ($1 [count]));
7575 }
@@ -81,8 +81,8 @@ namespace std {
8181%include " fastdds/rtps/common/EntityId_t.hpp"
8282
8383// Declare the comparison operators as internal to the class
84- %extend eprosima::fastrtps ::rtps::EntityId_t {
85- bool operator ==(const eprosima::fastrtps ::rtps::EntityId_t& other) const
84+ %extend eprosima::fastdds ::rtps::EntityId_t {
85+ bool operator ==(const eprosima::fastdds ::rtps::EntityId_t& other) const
8686 {
8787 return *$self == other;
8888 }
@@ -92,7 +92,7 @@ namespace std {
9292 return *$self == other;
9393 }
9494
95- bool operator !=(const eprosima::fastrtps ::rtps::EntityId_t& other) const
95+ bool operator !=(const eprosima::fastdds ::rtps::EntityId_t& other) const
9696 {
9797 return *$self != other;
9898 }
0 commit comments