ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
Go to the documentation of this file.
10 #ifndef DAQ_LOG4CPLUS_HPP
11 #define DAQ_LOG4CPLUS_HPP
15 #include <log4cplus/loglevel.h>
48 explicit Trim(std::string_view str, uint8_t spec =
Right) noexcept : m_str(str), m_spec(spec){};
57 friend std::ostream&
operator<<(std::ostream& os,
Trim const& trim);
60 std::string_view m_str;
65 #endif // #ifndef DAQ_LOG4CPLUS_HPP
Trim(std::string_view str, uint8_t spec=Right) noexcept
Construct from exception derived from std::exception.
friend std::ostream & operator<<(std::ostream &os, Trim const &trim)
Formats string by trimming as.
static constexpr std::string_view WHITESPACE
std::istream & operator>>(std::istream &is, LogLevel &level)
Parse log level from string.
daqif::DaqStatus & operator<<(daqif::DaqStatus &status, daq::Status const &rhs)
Convert daq::Status -> daqif::DaqStatus by populating from rhs.
log4cplus::LogLevel value
Trim string from whitespace (' ', ' ')
ly typed log4cplus::LogLevel (which is an alias to int)