ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SqlDatabase::TimeRenderer Struct Reference

Renders a time_t as a string. More...

#include <SqlDatabase.h>

Inheritance diagram for SqlDatabase::TimeRenderer:
Collaboration diagram for SqlDatabase::TimeRenderer:

Public Member Functions

 TimeRenderer ()
 
 TimeRenderer (const std::string &format, bool local_tz=true)
 
virtual std::string operator() (const time_t &value, size_t width) const
 Renders a column value as a string. More...
 
- Public Member Functions inherited from SqlDatabase::Renderer< time_t >
virtual ~Renderer ()
 

Public Attributes

bool local_tz
 Use local time zone rather than GMT. More...
 
std::string format
 Format, as for strftime(). More...
 

Detailed Description

Renders a time_t as a string.

Definition at line 544 of file SqlDatabase.h.

Constructor & Destructor Documentation

SqlDatabase::TimeRenderer::TimeRenderer ( )
inline

Definition at line 547 of file SqlDatabase.h.

SqlDatabase::TimeRenderer::TimeRenderer ( const std::string &  format,
bool  local_tz = true 
)
inlineexplicit

Definition at line 548 of file SqlDatabase.h.

Member Function Documentation

virtual std::string SqlDatabase::TimeRenderer::operator() ( const time_t &  value,
size_t  width 
) const
virtual

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 from SqlDatabase::Renderer< time_t >.

Member Data Documentation

bool SqlDatabase::TimeRenderer::local_tz

Use local time zone rather than GMT.

Definition at line 545 of file SqlDatabase.h.

std::string SqlDatabase::TimeRenderer::format

Format, as for strftime().

Definition at line 546 of file SqlDatabase.h.


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