iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
logstream.hpp File Reference
#include "iox2/bb/detail/source_location.hpp"
#include "iox2/legacy/log/logger.hpp"
#include "iox2/legacy/type_traits.hpp"
#include <cstdint>
#include <string>
#include "iox2/legacy/detail/log/logstream.inl"

Go to the source code of this file.

Classes

class  iox2::legacy::log::LogHex< T >
 Helper struct to log in hexadecimal format. More...
 
class  iox2::legacy::log::LogOct< T >
 Helper struct to log in octal format. More...
 
class  iox2::legacy::log::LogBin< T >
 Helper struct to log in binary format. More...
 
class  iox2::legacy::log::LogRaw
 Helper struct to log in raw bytes. More...
 
class  iox2::legacy::log::LogStream
 This class provides the public interface to the logger and is used with the 'IOX2_LOG' macro. In order to add support for custom data types 'operator<<' needs to be implement for the custom type. More...
 

Namespaces

namespace  iox2
 
namespace  iox2::legacy
 
namespace  iox2::legacy::log
 

Functions

template<typename T , typename = std::enable_if_t<std::is_arithmetic<T>::value && !std::is_same<T, bool>::value>>
constexpr LogHex< Tiox2::legacy::log::hex (const T value) noexcept
 Log a number in hexadecimal format.
 
constexpr LogHex< const void *constiox2::legacy::log::hex (const void *const ptr) noexcept
 Log a pointer in hexadecimal format.
 
template<typename T , typename = std::enable_if_t<std::is_integral<T>::value && !std::is_same<T, bool>::value>>
constexpr LogOct< Tiox2::legacy::log::oct (const T value) noexcept
 Log a number in octal format.
 
template<typename T , typename = std::enable_if_t<std::is_integral<T>::value && !std::is_same<T, bool>::value>>
constexpr LogBin< Tiox2::legacy::log::bin (const T value) noexcept
 Log a number in binary format.
 
template<typename T >
constexpr std::enable_if<!std::is_pointer< T >::value, LogRaw >::type iox2::legacy::log::raw (const T &object) noexcept
 Log an object in raw bytes.
 
constexpr LogRaw iox2::legacy::log::raw (const void *const data, const uint64_t size) noexcept
 Log data in raw bytes.