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

Classes

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

Functions

std::ostream & operator<< (std::ostream &os, const Spaces &spaces)
 
std::ostream & operator<< (std::ostream &os, Separator &sep)
 
std::string formatSeconds (time::seconds d, bool isLong)
 
std::string formatTimestamp (time::system_clock::TimePoint t)
 
template<typename DURATION >
std::string formatDuration (DURATION d, bool isLong=false)
 

Function Documentation

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

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

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

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

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

Definition at line 128 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.