Public Member Functions | List of all members
SqlDatabase::Renderer< T > Class Template Reference


template<typename T>
class SqlDatabase::Renderer< T >

Renders a column value as a string.

This is a base class for user-defined renderers.

Definition at line 524 of file SqlDatabase.h.

#include <SqlDatabase.h>

Inheritance diagram for SqlDatabase::Renderer< T >:
Inheritance graph

Public Member Functions

virtual std::string operator() (const T &value, size_t width) const
 Renders a column value as a string. More...

Member Function Documentation

template<typename T>
virtual std::string SqlDatabase::Renderer< T >::operator() ( const T &  value,
size_t  width 
) const

Renders a column value as a string.

The width is zero when this functor is called while Table::print() is trying to determine the maximum width of a value.

Reimplemented in SqlDatabase::TimeRenderer, and SqlDatabase::AddrRenderer.

Definition at line 530 of file SqlDatabase.h.

The documentation for this class was generated from the following file: