Print attributes of an item.
More...
#include <tools/nfdc/format-helpers.hpp>
Print attributes of an item.
os << ia("id") << 500
<< ia("uri") << "udp4://192.0.2.1:6363"
<< ia.end();
ItemAttributes(bool wantMultiLine=false, int maxAttributeWidth=0)
Constructor.
Definition at line 141 of file format-helpers.hpp.
◆ ItemAttributes()
nfd::tools::nfdc::text::ItemAttributes::ItemAttributes |
( |
bool |
wantMultiLine = false , |
|
|
int |
maxAttributeWidth = 0 |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
wantMultiLine | true to select multi-line style, false to use single-line style |
maxAttributeWidth | maximum width of attribute names, for alignment in multi-line style |
Definition at line 149 of file format-helpers.cpp.
◆ end()
std::string nfd::tools::nfdc::text::ItemAttributes::end |
( |
| ) |
const |
◆ operator()()
◆ operator<<