ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlDatabase::Renderer< T > Class Template Reference

Renders a column value as a string. More...

#include <SqlDatabase.h>

Inheritance diagram for SqlDatabase::Renderer< T >:

Public Member Functions

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

Detailed Description

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 506 of file SqlDatabase.h.

Constructor & Destructor Documentation

template<typename T>
virtual SqlDatabase::Renderer< T >::~Renderer ( )
inlinevirtual

Definition at line 508 of file SqlDatabase.h.

Member Function Documentation

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

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 512 of file SqlDatabase.h.


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