QxOrm  1.3.2
C++ Object Relational Mapping library

Provide global functions to convert any kind of objects to/from QString and QVariant format. More...

Namespaces

namespace  detail
 

Internal helper tools for qx::cvt namespace.


Functions

template<typename T >
QString to_string (const T &t, const QString &format)
template<typename T >
qx_bool from_string (const QString &s, T &t, const QString &format)
template<typename T >
QVariant to_variant (const T &t, const QString &format)
template<typename T >
qx_bool from_variant (const QVariant &v, T &t, const QString &format)
template<typename T >
QString to_string (const T &t)
template<typename T >
qx_bool from_string (const QString &s, T &t)
template<typename T >
QVariant to_variant (const T &t)
template<typename T >
qx_bool from_variant (const QVariant &v, T &t)
template<typename T >
QString to_string (const T &t, const QString &format, int index)
template<typename T >
qx_bool from_string (const QString &s, T &t, const QString &format, int index)
template<typename T >
QVariant to_variant (const T &t, const QString &format, int index)
template<typename T >
qx_bool from_variant (const QVariant &v, T &t, const QString &format, int index)

Detailed Description

Provide global functions to convert any kind of objects to/from QString and QVariant format.


Function Documentation

template<typename T >
qx_bool qx::cvt::from_string ( const QString &  s,
T &  t,
const QString &  format 
) [inline]

Definition at line 61 of file QxStringCvt.h.

template<typename T >
qx_bool qx::cvt::from_string ( const QString &  s,
T &  t 
) [inline]

Definition at line 66 of file QxStringCvt.h.

template<typename T >
qx_bool qx::cvt::from_string ( const QString &  s,
T &  t,
const QString &  format,
int  index 
) [inline]

Definition at line 71 of file QxStringCvt.h.

template<typename T >
qx_bool qx::cvt::from_variant ( const QVariant &  v,
T &  t,
const QString &  format 
) [inline]

Definition at line 63 of file QxStringCvt.h.

template<typename T >
qx_bool qx::cvt::from_variant ( const QVariant &  v,
T &  t 
) [inline]

Definition at line 68 of file QxStringCvt.h.

template<typename T >
qx_bool qx::cvt::from_variant ( const QVariant &  v,
T &  t,
const QString &  format,
int  index 
) [inline]

Definition at line 73 of file QxStringCvt.h.

template<typename T >
QString qx::cvt::to_string ( const T &  t,
const QString &  format 
) [inline]

Definition at line 60 of file QxStringCvt.h.

template<typename T >
QString qx::cvt::to_string ( const T &  t) [inline]

Definition at line 65 of file QxStringCvt.h.

template<typename T >
QString qx::cvt::to_string ( const T &  t,
const QString &  format,
int  index 
) [inline]

Definition at line 70 of file QxStringCvt.h.

template<typename T >
QVariant qx::cvt::to_variant ( const T &  t,
const QString &  format 
) [inline]

Definition at line 62 of file QxStringCvt.h.

template<typename T >
QVariant qx::cvt::to_variant ( const T &  t) [inline]

Definition at line 67 of file QxStringCvt.h.

template<typename T >
QVariant qx::cvt::to_variant ( const T &  t,
const QString &  format,
int  index 
) [inline]

Definition at line 72 of file QxStringCvt.h.