26 #ifndef NFD_TOOLS_NFDC_FORMAT_HELPERS_HPP 27 #define NFD_TOOLS_NFDC_FORMAT_HELPERS_HPP 56 template<
typename DURATION>
93 Separator(
const std::string& first,
const std::string& subsequent);
106 std::string m_subsequent;
139 ItemAttributes(
bool wantMultiLine =
false,
int maxAttributeWidth = 0);
151 operator()(
const std::string& attribute);
157 bool m_wantMultiLine;
158 int m_maxAttributeWidth;
170 template<
typename DURATION>
174 return formatSeconds(time::duration_cast<time::seconds>(d), isLong);
186 #endif // NFD_TOOLS_NFDC_FORMAT_HELPERS_HPP
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
print attributes of an item
int nSpaces
number of spaces; print nothing if negative
print different string on first and subsequent usage
print a number of whitespaces