Skip to content

Commit

Permalink
iox-eclipse-iceoryx#2130 Move 'utility' types from 'iceoryx_dust' to …
Browse files Browse the repository at this point in the history
…'iceoryx_hoofs'
  • Loading branch information
elBoberido committed Dec 12, 2023
1 parent 08967a7 commit 4e69337
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_DUST_UTILITY_SERIALIZATION_HPP
#define IOX_DUST_UTILITY_SERIALIZATION_HPP
#ifndef IOX_HOOFS_UTILITY_SERIALIZATION_HPP
#define IOX_HOOFS_UTILITY_SERIALIZATION_HPP

#include "iox/detail/convert.hpp"
#include "iox/std_string_support.hpp"
Expand Down Expand Up @@ -141,4 +141,4 @@ class Serialization

#include "iox/detail/serialization.inl"

#endif // IOX_DUST_UTILITY_SERIALIZATION_HPP
#endif // IOX_HOOFS_UTILITY_SERIALIZATION_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_DUST_UTILITY_SERIALIZATION_INL
#define IOX_DUST_UTILITY_SERIALIZATION_INL
#ifndef IOX_HOOFS_UTILITY_SERIALIZATION_INL
#define IOX_HOOFS_UTILITY_SERIALIZATION_INL

#include "iox/detail/serialization.hpp"

Expand Down Expand Up @@ -65,7 +65,7 @@ template <typename T>
inline typename std::enable_if<std::is_convertible<T, Serialization>::value, std::string>::type
Serialization::getString(const T& t) noexcept
{
Serialization serial = static_cast<Serialization>(t);
const auto serial = static_cast<Serialization>(t);
return serial.toString();
}

Expand Down Expand Up @@ -144,4 +144,4 @@ inline bool Serialization::getNth(const unsigned int index, T& t) const noexcept
}
} // namespace iox

#endif // IOX_DUST_CXX_SERIALIZATION_INL
#endif // IOX_HOOFS_UTILITY_SERIALIZATION_INL
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_DUST_UTILITY_STD_CHRONO_SUPPORT_INL
#define IOX_DUST_UTILITY_STD_CHRONO_SUPPORT_INL
#ifndef IOX_HOOFS_UTILITY_STD_CHRONO_SUPPORT_INL
#define IOX_HOOFS_UTILITY_STD_CHRONO_SUPPORT_INL

#include "iox/std_chrono_support.hpp"

Expand Down Expand Up @@ -47,4 +47,4 @@ FromImpl<std::chrono::seconds, units::Duration>::fromImpl(const std::chrono::sec

} // namespace iox

#endif // IOX_DUST_UTILITY_STD_CHRONO_SUPPORT_INL
#endif // IOX_HOOFS_UTILITY_STD_CHRONO_SUPPORT_INL
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
// limitations under the License.
//
// SPDX-License-Identifier: Apache-2.0
#ifndef IOX_DUST_UTILITY_STD_STRING_SUPPORT_INL
#define IOX_DUST_UTILITY_STD_STRING_SUPPORT_INL

#ifndef IOX_HOOFS_UTILITY_STD_STRING_SUPPORT_INL
#define IOX_HOOFS_UTILITY_STD_STRING_SUPPORT_INL

#include "iox/std_string_support.hpp"

Expand Down Expand Up @@ -66,4 +67,4 @@ inline std::ostream& operator<<(std::ostream& stream, const string<Capacity>& st
}
} // namespace iox

#endif // IOX_DUST_UTILITY_STD_STRING_SUPPORT_INL
#endif // IOX_HOOFS_UTILITY_STD_STRING_SUPPORT_INL
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_DUST_UTILITY_STD_CHRONO_SUPPORT_HPP
#define IOX_DUST_UTILITY_STD_CHRONO_SUPPORT_HPP
#ifndef IOX_HOOFS_UTILITY_STD_CHRONO_SUPPORT_HPP
#define IOX_HOOFS_UTILITY_STD_CHRONO_SUPPORT_HPP

#include "iox/duration.hpp"
#include "iox/into.hpp"
Expand Down Expand Up @@ -63,4 +63,4 @@ struct FromImpl<std::chrono::seconds, units::Duration>

#include "iox/detail/std_chrono_support.inl"

#endif // IOX_DUST_UTILITY_STD_CHRONO_SUPPORT_HPP
#endif // IOX_HOOFS_UTILITY_STD_CHRONO_SUPPORT_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
//
// SPDX-License-Identifier: Apache-2.0

#ifndef IOX_DUST_UTILITY_STD_STRING_SUPPORT_HPP
#define IOX_DUST_UTILITY_STD_STRING_SUPPORT_HPP
#ifndef IOX_HOOFS_UTILITY_STD_STRING_SUPPORT_HPP
#define IOX_HOOFS_UTILITY_STD_STRING_SUPPORT_HPP

#include "iox/into.hpp"
#include "iox/optional.hpp"
Expand Down Expand Up @@ -92,4 +92,4 @@ std::ostream& operator<<(std::ostream& stream, const string<Capacity>& str) noex

#include "iox/detail/std_string_support.inl"

#endif // IOX_DUST_UTILITY_STD_STRING_SUPPORT_HPP
#endif // IOX_HOOFS_UTILITY_STD_STRING_SUPPORT_HPP

0 comments on commit 4e69337

Please sign in to comment.