32#ifndef _QX_VALIDATOR_INVALID_VALUE_X_H_
33#define _QX_VALIDATOR_INVALID_VALUE_X_H_
46#ifdef _QX_ENABLE_BOOST_SERIALIZATION
47#include <boost/serialization/serialization.hpp>
48#include <boost/serialization/nvp.hpp>
52#include <QtCore/qjsonvalue.h>
75template <>
struct QxConvert_ToJson<
qx::QxInvalidValueX >;
76template <> struct QxConvert_FromJson< qx::QxInvalidValueX >;
96#ifdef _QX_ENABLE_BOOST_SERIALIZATION
97 friend class boost::serialization::access;
112 QList<QxInvalidValue> m_lstInvalidValues;
113 QString m_sCurrentPath;
120 QString getCurrentPath() const;
121 void setCurrentPath(const QString & s);
125 void insert(const IxValidator * pValidator);
126 void insert(const QString & sMessage);
127 void insert(const QxInvalidValue & invalidValue);
128 void insert(const QxInvalidValueX & other);
130 QString text() const;
133 inline operator bool() const
134 {
return (m_lstInvalidValues.count() == 0); }
138#ifdef _QX_ENABLE_BOOST_SERIALIZATION
139 template <
class Archive>
140 void serialize(Archive & ar,
const unsigned int file_version)
142 Q_UNUSED(file_version);
143 ar & boost::serialization::make_nvp(
"list_invalid_values", m_lstInvalidValues);
144 ar & boost::serialization::make_nvp(
"current_path", m_sCurrentPath);
qx::cvt : namespace to provide global functions to convert any kind of objects to/from QString and QV...
Invalid value when a property fails to pass a constraint.
QX_DLL_EXPORT QDataStream & operator>>(QDataStream &stream, qx::QxInvalidValueX &t) QX_USED
QX_DLL_EXPORT QDataStream & operator<<(QDataStream &stream, const qx::QxInvalidValueX &t) QX_USED
qx_bool : boolean type with code and description message when an error occured
qx::QxInvalidValue : invalid value when a property fails to pass a constraint
qx::QxInvalidValueX : list of invalid values
void serialize(Archive &ar, const unsigned int file_version)
qx::trait::get_class_name<T>::get() : return class name of type T under const char * format,...
#define QX_REGISTER_CLASS_NAME(className)
void dump(const T &t, bool bJsonFormat=false)
qx::dump(const T & t, bool bJsonFormat) : dump class of type T registered into QxOrm context using XM...
QX_DLL_EXPORT QJsonValue QxConvert_ToJson_Helper(const qx::dao::detail::IxSqlElement &t, const QString &format) QX_USED
QX_DLL_EXPORT qx_bool QxConvert_FromJson_Helper(const QJsonValue &j, qx::dao::detail::IxSqlElement &t, const QString &format) QX_USED
Root namespace for all QxOrm library features.