Library: Data
Package: DataCore
Header: Poco/Data/SimpleRowFormatter.h
A simple row formatting class.
Direct Base Classes: RowFormatter
All Base Classes: RowFormatter
Member Functions: formatNames, formatValues, getColumnWidth, operator =, rowCount, setColumnWidth, swap
Inherited Functions: formatNames, formatValues, getMode, getTotalRowCount, postfix, prefix, reset, rowCount, setMode, setPostfix, setPrefix, setTotalRowCount, toString
SimpleRowFormatter(
std::streamsize columnWidth = DEFAULT_COLUMN_WIDTH
);
Creates the SimpleRowFormatter and sets the column width to specified value.
SimpleRowFormatter(
const SimpleRowFormatter & other
);
Creates the copy of the supplied SimpleRowFormatter.
Destroys the SimpleRowFormatter.
std::string & formatNames(
const NameVecPtr pNames,
std::string & formattedNames
);
Formats the row field names.
See also: Poco::Data::RowFormatter::formatNames()
std::string & formatValues(
const ValueVec & vals,
std::string & formattedValues
);
Formats the row values.
See also: Poco::Data::RowFormatter::formatValues()
std::streamsize getColumnWidth() const;
Returns the column width.
SimpleRowFormatter & operator = (
const SimpleRowFormatter & row
);
Assignment operator.
int rowCount() const;
Returns row count.
See also: Poco::Data::RowFormatter::rowCount()
void setColumnWidth(
std::streamsize width
);
Sets the column width.
void swap(
SimpleRowFormatter & other
);
Swaps the row formatter with another one.
static const int DEFAULT_COLUMN_WIDTH = 16;