nfd::tools::nfdc::text Namespace Reference

Namespaces

 detail
 

Classes

class  ItemAttributes
 print attributes of an item More...
 
struct  OnOff
 print boolean as 'on' or 'off' More...
 
class  Separator
 print different string on first and subsequent usage More...
 
struct  Spaces
 print a number of whitespaces More...
 
struct  YesNo
 print boolean as 'yes' or 'no' More...
 

Functions

template<typename OutputPrecision >
std::string formatDuration (time::nanoseconds d, bool isLong=false)
 
std::string formatTimestamp (time::system_clock::TimePoint t)
 
std::ostream & operator<< (std::ostream &os, const Spaces &spaces)
 
std::ostream & operator<< (std::ostream &os, Separator &sep)
 
std::ostream & operator<< (std::ostream &os, const ItemAttributes::Attribute &attr)
 
std::ostream & operator<< (std::ostream &os, OnOff v)
 
std::ostream & operator<< (std::ostream &os, YesNo v)
 

Function Documentation

◆ formatDuration()

template<typename OutputPrecision >
std::string nfd::tools::nfdc::text::formatDuration ( time::nanoseconds  d,
bool  isLong = false 
)

Definition at line 258 of file format-helpers.hpp.

◆ formatTimestamp()

std::string nfd::tools::nfdc::text::formatTimestamp ( time::system_clock::TimePoint  t)

Definition at line 202 of file format-helpers.cpp.

◆ operator<<() [1/5]

std::ostream & nfd::tools::nfdc::text::operator<< ( std::ostream &  os,
const Spaces spaces 
)

Definition at line 123 of file format-helpers.cpp.

◆ operator<<() [2/5]

std::ostream & nfd::tools::nfdc::text::operator<< ( std::ostream &  os,
Separator sep 
)

Definition at line 144 of file format-helpers.cpp.

◆ operator<<() [3/5]

std::ostream & nfd::tools::nfdc::text::operator<< ( std::ostream &  os,
const ItemAttributes::Attribute attr 
)

Definition at line 172 of file format-helpers.cpp.

◆ operator<<() [4/5]

std::ostream & nfd::tools::nfdc::text::operator<< ( std::ostream &  os,
OnOff  v 
)

Definition at line 190 of file format-helpers.cpp.

◆ operator<<() [5/5]

std::ostream & nfd::tools::nfdc::text::operator<< ( std::ostream &  os,
YesNo  v 
)

Definition at line 196 of file format-helpers.cpp.