QxOrm  1.5.0
C++ Object Relational Mapping library

qx::QxDateTimeNeutral : helper class to store a date-time value into database under neutral format (YYYYMMDDHHMMSS) => cross database compatibility More...

#include <QxDateTimeNeutral.h>

List of all members.

Public Member Functions

 QxDateTimeNeutral ()
 QxDateTimeNeutral (const QDateTime &dt)
 QxDateTimeNeutral (const QString &neutral)
virtual ~QxDateTimeNeutral ()
QDateTime toDateTime () const
QString toNeutral () const
bool isValid () const
void setDateTime (const QDateTime &dt)
void setNeutral (const QString &neutral)

Static Public Member Functions

static QxDateTimeNeutral fromDateTime (const QDateTime &dt)
static QxDateTimeNeutral fromNeutral (const QString &neutral)

Private Member Functions

void update ()
template<class Archive >
void serialize (Archive &ar, const unsigned int file_version)

Static Private Member Functions

static const char * format ()

Private Attributes

QDateTime m_dt
 Data value under QDateTime format from Qt library.
QString m_neutral
 Data value under neutral format 'yyyyMMddhhmmss'.

Friends

class boost::serialization::access
QX_DLL_EXPORT QDataStream & operator<< (QDataStream &stream, const qx::QxDateTimeNeutral &t)
QX_DLL_EXPORT QDataStream & operator>> (QDataStream &stream, qx::QxDateTimeNeutral &t)

Detailed Description

qx::QxDateTimeNeutral : helper class to store a date-time value into database under neutral format (YYYYMMDDHHMMSS) => cross database compatibility

Definition at line 71 of file QxDateTimeNeutral.h.


Constructor & Destructor Documentation

qx::QxDateTimeNeutral::QxDateTimeNeutral ( ) [inline]

Definition at line 88 of file QxDateTimeNeutral.h.

qx::QxDateTimeNeutral::QxDateTimeNeutral ( const QDateTime &  dt) [inline, explicit]

Definition at line 89 of file QxDateTimeNeutral.h.

qx::QxDateTimeNeutral::QxDateTimeNeutral ( const QString &  neutral) [inline, explicit]

Definition at line 90 of file QxDateTimeNeutral.h.

virtual qx::QxDateTimeNeutral::~QxDateTimeNeutral ( ) [inline, virtual]

Definition at line 91 of file QxDateTimeNeutral.h.


Member Function Documentation

static const char* qx::QxDateTimeNeutral::format ( ) [inline, static, private]

Definition at line 105 of file QxDateTimeNeutral.h.

static QxDateTimeNeutral qx::QxDateTimeNeutral::fromDateTime ( const QDateTime &  dt) [inline, static]

Definition at line 100 of file QxDateTimeNeutral.h.

static QxDateTimeNeutral qx::QxDateTimeNeutral::fromNeutral ( const QString &  neutral) [inline, static]

Definition at line 101 of file QxDateTimeNeutral.h.

bool qx::QxDateTimeNeutral::isValid ( ) const [inline]

Definition at line 95 of file QxDateTimeNeutral.h.

template<class Archive >
void qx::QxDateTimeNeutral::serialize ( Archive &  ar,
const unsigned int  file_version 
) [inline, private]

Definition at line 116 of file QxDateTimeNeutral.h.

void qx::QxDateTimeNeutral::setDateTime ( const QDateTime &  dt) [inline]

Definition at line 97 of file QxDateTimeNeutral.h.

void qx::QxDateTimeNeutral::setNeutral ( const QString &  neutral) [inline]

Definition at line 98 of file QxDateTimeNeutral.h.

QDateTime qx::QxDateTimeNeutral::toDateTime ( ) const [inline]

Definition at line 93 of file QxDateTimeNeutral.h.

QString qx::QxDateTimeNeutral::toNeutral ( ) const [inline]

Definition at line 94 of file QxDateTimeNeutral.h.

void qx::QxDateTimeNeutral::update ( ) [inline, private]

Definition at line 107 of file QxDateTimeNeutral.h.


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Definition at line 75 of file QxDateTimeNeutral.h.

QX_DLL_EXPORT QDataStream& operator<< ( QDataStream &  stream,
const qx::QxDateTimeNeutral t 
) [friend]
QX_DLL_EXPORT QDataStream& operator>> ( QDataStream &  stream,
qx::QxDateTimeNeutral t 
) [friend]

Member Data Documentation

QDateTime qx::QxDateTimeNeutral::m_dt [private]

Data value under QDateTime format from Qt library.

Definition at line 83 of file QxDateTimeNeutral.h.

Data value under neutral format 'yyyyMMddhhmmss'.

Definition at line 84 of file QxDateTimeNeutral.h.


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