QxOrm  1.5.0
C++ Object Relational Mapping library

qx::cvt : namespace to provide global functions to convert any kind of objects to/from QString and QVariant format More...

#include <QtCore/qjsonvalue.h>
#include <QtCore/qjsonobject.h>
#include <QtCore/qjsonarray.h>
#include <QtCore/qjsondocument.h>
#include <QxCommon/QxBool.h>

Go to the source code of this file.

Classes

struct  qx::cvt::context

Namespaces

namespace  qx
 

Root namespace for all QxOrm library features.


namespace  qx::cvt
 

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


namespace  qx::cvt::detail
 

Internal helper tools for qx::cvt namespace.


Functions

template<typename T >
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)
template<typename T >
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)
template<typename T >
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)
template<typename T >
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)
template<typename T >
QJsonValue qx::cvt::to_json (const T &t, const QString &format=QString())
template<typename T >
qx_bool qx::cvt::from_json (const QJsonValue &j, T &t, const QString &format=QString())

Detailed Description

qx::cvt : namespace to provide global functions to convert any kind of objects to/from QString and QVariant format

Author:
Lionel Marty

Definition in file QxConvert.h.