QxOrm
1.5.0
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. | |
Classes | |
struct | context |
Functions | |
template<typename T > | |
QString | to_string (const T &t, const QString &format=QString(), int index=-1, qx::cvt::context::ctx_type ctx=qx::cvt::context::e_no_context) |
template<typename T > | |
qx_bool | from_string (const QString &s, T &t, const QString &format=QString(), int index=-1, qx::cvt::context::ctx_type ctx=qx::cvt::context::e_no_context) |
template<typename T > | |
QVariant | to_variant (const T &t, const QString &format=QString(), int index=-1, qx::cvt::context::ctx_type ctx=qx::cvt::context::e_no_context) |
template<typename T > | |
qx_bool | from_variant (const QVariant &v, T &t, const QString &format=QString(), int index=-1, qx::cvt::context::ctx_type ctx=qx::cvt::context::e_no_context) |
template<typename T > | |
QJsonValue | to_json (const T &t, const QString &format=QString()) |
template<typename T > | |
qx_bool | from_json (const QJsonValue &j, T &t, const QString &format=QString()) |
Provide global functions to convert any kind of objects to/from QString and QVariant format.
qx_bool qx::cvt::from_json | ( | const QJsonValue & | j, |
T & | t, | ||
const QString & | format = QString() |
||
) | [inline] |
Definition at line 84 of file QxConvert.h.
qx_bool qx::cvt::from_string | ( | const QString & | s, |
T & | t, | ||
const QString & | format = QString() , |
||
int | index = -1 , |
||
qx::cvt::context::ctx_type | ctx = qx::cvt::context::e_no_context |
||
) | [inline] |
Definition at line 78 of file QxConvert.h.
qx_bool qx::cvt::from_variant | ( | const QVariant & | v, |
T & | t, | ||
const QString & | format = QString() , |
||
int | index = -1 , |
||
qx::cvt::context::ctx_type | ctx = qx::cvt::context::e_no_context |
||
) | [inline] |
Definition at line 80 of file QxConvert.h.
QJsonValue qx::cvt::to_json | ( | const T & | t, |
const QString & | format = QString() |
||
) | [inline] |
Definition at line 83 of file QxConvert.h.
QString qx::cvt::to_string | ( | const T & | t, |
const QString & | format = QString() , |
||
int | index = -1 , |
||
qx::cvt::context::ctx_type | ctx = qx::cvt::context::e_no_context |
||
) | [inline] |
Definition at line 77 of file QxConvert.h.
QVariant qx::cvt::to_variant | ( | const T & | t, |
const QString & | format = QString() , |
||
int | index = -1 , |
||
qx::cvt::context::ctx_type | ctx = qx::cvt::context::e_no_context |
||
) | [inline] |
Definition at line 79 of file QxConvert.h.