25 while (pos < str.size() && str[pos] !=
'\n')
52 const string& prefix,
const string& suffix) {
56 col->flushLeft = flushLeft;
74 const string& text =
_cols[
col]->text.str();
78 while (pos < text.size()) {
86 if (text[pos] ==
'\n')
109 const string& text =
_cols[
col]->text.str();
116 while (pos < text.size()) {
117 if (text[pos] ==
'\n') {
ostream & operator<<(ostream &out, const ColumnPrinter &printer)
void print(FILE *out, const ColumnPrinter &pr)
void exceptionSafePushBack(Container &container, auto_ptr< Element > pointer)
void nameFactoryRegister(NameFactory< AbstractProduct > &factory)
Registers the string returned by ConcreteProduct::getStaticName() to a function that default-construc...
ostream & operator[](size_t col)
void print(ostream &out) const
size_t getColumnCount() const
ColumnPrinter(size_t columnCount=0)
void addColumn(bool flushLeft=true, const string &prefix=" ", const string &suffix="")
void setPrefix(const string &prefix)
A replacement for stringstream.