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

Classes

class  ItemAttributes
 print attributes of an item More...
 
class  Separator
 print different string on first and subsequent usage More...
 
struct  Spaces
 print a number of whitespaces More...
 

Functions

template<typename DURATION >
std::string formatDuration (DURATION d, bool isLong=false)
 
std::string formatSeconds (time::seconds d, bool isLong)
 
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)
 

Function Documentation

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

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

std::string nfd::tools::nfdc::text::formatSeconds ( time::seconds  d,
bool  isLong 
)

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

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

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

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

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

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

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

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

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