ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
daq::Trim Class Reference

Trim string from whitespace (' ', '
') More...

#include <log4cplus.hpp>

Public Types

enum  : uint8_t { Right = 1 << 2 }
 

Public Member Functions

 Trim (std::string_view str, uint8_t spec=Right) noexcept
 Construct from exception derived from std::exception. More...
 

Static Public Attributes

static constexpr std::string_view WHITESPACE = " \n\t"
 

Friends

std::ostream & operator<< (std::ostream &os, Trim const &trim)
 Formats string by trimming as. More...
 

Detailed Description

Trim string from whitespace (' ', '
')

Definition at line 39 of file log4cplus.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : uint8_t
Enumerator
Right 

Definition at line 42 of file log4cplus.hpp.

Constructor & Destructor Documentation

◆ Trim()

daq::Trim::Trim ( std::string_view  str,
uint8_t  spec = Right 
)
inlineexplicitnoexcept

Construct from exception derived from std::exception.

Definition at line 48 of file log4cplus.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
Trim const &  trim 
)
friend

Formats string by trimming as.

Parameters
osoutput stream to output to.
reporterReporter adapter to format.
Returns
os

Definition at line 35 of file log4cplus.cpp.

Member Data Documentation

◆ WHITESPACE

constexpr std::string_view daq::Trim::WHITESPACE = " \n\t"
staticconstexpr

Definition at line 41 of file log4cplus.hpp.


The documentation for this class was generated from the following file: