32#ifndef _QX_VALIDATOR_INVALID_VALUE_H_
33#define _QX_VALIDATOR_INVALID_VALUE_H_
46#ifdef _QX_ENABLE_BOOST_SERIALIZATION
47#include <boost/serialization/serialization.hpp>
48#include <boost/serialization/nvp.hpp>
52#include <QtCore/qjsonvalue.h>
79template <>
struct QxConvert_ToJson<
qx::QxInvalidValue >;
80template <> struct QxConvert_FromJson< qx::QxInvalidValue >;
100#ifdef _QX_ENABLE_BOOST_SERIALIZATION
101 friend class boost::serialization::access;
117 QString m_sPropertyName;
126 QString getMessage() const {
return m_sMessage; }
134 void setPath(
const QString & s) { m_sPath = s; }
139#ifdef _QX_ENABLE_BOOST_SERIALIZATION
140 template <
class Archive>
141 void serialize(Archive & ar,
const unsigned int file_version)
143 Q_UNUSED(file_version);
144 ar & boost::serialization::make_nvp(
"message", m_sMessage);
145 ar & boost::serialization::make_nvp(
"property_name", m_sPropertyName);
146 ar & boost::serialization::make_nvp(
"path", m_sPath);
147 ar & boost::serialization::make_nvp(
"list_property_bag", this->m_lstPropertyBag);
qx::cvt : namespace to provide global functions to convert any kind of objects to/from QString and QV...
QX_DLL_EXPORT QDataStream & operator>>(QDataStream &stream, qx::QxInvalidValue &t) QX_USED
QX_DLL_EXPORT QDataStream & operator<<(QDataStream &stream, const qx::QxInvalidValue &t) QX_USED
Used by introspection engine (IxClass, IxDataMember, IxFunction, etc.) to add meta-data (property bag...
qx::IxValidator : common interface for validator engine
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
void serialize(Archive &ar, const unsigned int file_version)
void setPath(const QString &s)
QString getFullName() const
QString getPropertyName() const
void setValidator(const IxValidator *p)
const IxValidator * getValidator() const
void setPropertyName(const QString &s)
void setMessage(const QString &s)
qx::QxPropertyBag : used by introspection engine (IxClass, IxDataMember, IxFunction,...
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.