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;
125 void
insert(const IxValidator * pValidator);
127 void
insert(const QxInvalidValue & invalidValue);
128 void
insert(const QxInvalidValueX & other);
133 inline operator bool() const
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);
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::QxInvalidValue : invalid value when a property fails to pass a constraint
qx::QxInvalidValueX : list of invalid values
void insert(const IxValidator *pValidator)
void serialize(Archive &ar, const unsigned int file_version)
QString getCurrentPath() const
void setCurrentPath(const QString &s)
QxInvalidValue at(long l) const
QList< QxInvalidValue > m_lstInvalidValues
List of invalid values.
QString m_sCurrentPath
Current path of validation process.
qx::trait::get_class_name<T>::get() : return class name of type T under const char * format,...
#define QX_REGISTER_CLASS_NAME(className)
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.