DB::unixtime Class Reference

#include <db.h>

List of all members.

Public Member Functions

 unixtime (time_t ti)

Private Attributes

time_t t

Friends

Queryoperator<< (Query &Out, const unixtime &ref)


Detailed Description

Stream manipulator to convert a time_t epoct timestamp into a suitable date and time field according to the underlying database type.

Based on the Effector pattern

Definition at line 392 of file db.h.


Constructor & Destructor Documentation

DB::unixtime::unixtime ( time_t  ti  )  [inline]

Definition at line 395 of file db.h.

00395 : t(ti) {}


Friends And Related Function Documentation

Query& operator<< ( Query Out,
const unixtime ref 
) [friend]

Definition at line 396 of file db.h.

00396                                                                   {
00397             return unixtime_impl(Out, ref.t);
00398         }


Member Data Documentation

time_t DB::unixtime::t [private]

Definition at line 393 of file db.h.


The documentation for this class was generated from the following file:
Generated on Tue Apr 24 18:59:42 2007 for DbAbstract by  doxygen 1.4.7