QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches

qx::QxInvalidValue : invalid value when a property fails to pass a constraint More...

#include <QxInvalidValue.h>

Inheritance diagram for qx::QxInvalidValue:
qx::QxPropertyBag

Public Member Functions

 QxInvalidValue ()
 
virtual ~QxInvalidValue ()
 
QString getMessage () const
 
QString getPropertyName () const
 
QString getPath () const
 
QString getFullName () const
 
const IxValidatorgetValidator () const
 
void setMessage (const QString &s)
 
void setPropertyName (const QString &s)
 
void setPath (const QString &s)
 
void setValidator (const IxValidator *p)
 
- Public Member Functions inherited from qx::QxPropertyBag
 QxPropertyBag ()
 
virtual ~QxPropertyBag ()
 
void setPropertyBag (const QString &key, const QVariant &value)
 
QVariant getPropertyBag (const QString &key) const
 
void removePropertyBag (const QString &key)
 
void clearPropertyBag ()
 
long countPropertyBag () const
 
QList< QString > getAllPropertyBagKeys () const
 

Protected Attributes

QString m_sMessage
 Message associated to the invalid value.
 
QString m_sPropertyName
 Property name failing to pass the constraint.
 
QString m_sPath
 Path of property failing to pass the constraint.
 
const IxValidatorm_pValidator
 IxValidator class associated to the invalid value.
 
- Protected Attributes inherited from qx::QxPropertyBag
type_hash_prop_bag_ptr m_lstPropertyBag
 List of all properties in the bag (meta-data)
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int file_version)
 

Friends

class boost::serialization::access
 
struct qx::cvt::detail::QxConvert_ToJson< qx::QxInvalidValue >
 
struct qx::cvt::detail::QxConvert_FromJson< qx::QxInvalidValue >
 
QX_DLL_EXPORT QDataStream & operator<< (QDataStream &stream, const qx::QxInvalidValue &t)
 
QX_DLL_EXPORT QDataStream & operator>> (QDataStream &stream, qx::QxInvalidValue &t)
 
QX_DLL_EXPORT QJsonValue qx::cvt::detail::QxConvert_ToJson_Helper (const qx::QxInvalidValue &t, const QString &format)
 
QX_DLL_EXPORT qx_bool qx::cvt::detail::QxConvert_FromJson_Helper (const QJsonValue &j, qx::QxInvalidValue &t, const QString &format)
 

Additional Inherited Members

- Protected Types inherited from qx::QxPropertyBag
typedef QHash< QString, QVariant > type_hash_prop_bag
 
typedef std::shared_ptr< type_hash_prop_bagtype_hash_prop_bag_ptr
 

Detailed Description

qx::QxInvalidValue : invalid value when a property fails to pass a constraint

For more informations about QxValidator module, goto the FAQ of QxOrm website : https://www.qxorm.com/qxorm_en/faq.html#faq_250

Definition at line 97 of file QxInvalidValue.h.

Constructor & Destructor Documentation

◆ QxInvalidValue()

qx::QxInvalidValue::QxInvalidValue ( )

◆ ~QxInvalidValue()

virtual qx::QxInvalidValue::~QxInvalidValue ( )
virtual

Member Function Documentation

◆ getFullName()

QString qx::QxInvalidValue::getFullName ( ) const

◆ getMessage()

QString qx::QxInvalidValue::getMessage ( ) const
inline

Definition at line 126 of file QxInvalidValue.h.

◆ getPath()

QString qx::QxInvalidValue::getPath ( ) const
inline

Definition at line 128 of file QxInvalidValue.h.

◆ getPropertyName()

QString qx::QxInvalidValue::getPropertyName ( ) const
inline

Definition at line 127 of file QxInvalidValue.h.

◆ getValidator()

const IxValidator * qx::QxInvalidValue::getValidator ( ) const

◆ serialize()

template<class Archive >
void qx::QxInvalidValue::serialize ( Archive & ar,
const unsigned int file_version )
inlineprivate

Definition at line 141 of file QxInvalidValue.h.

◆ setMessage()

void qx::QxInvalidValue::setMessage ( const QString & s)
inline

Definition at line 132 of file QxInvalidValue.h.

◆ setPath()

void qx::QxInvalidValue::setPath ( const QString & s)
inline

Definition at line 134 of file QxInvalidValue.h.

◆ setPropertyName()

void qx::QxInvalidValue::setPropertyName ( const QString & s)
inline

Definition at line 133 of file QxInvalidValue.h.

◆ setValidator()

void qx::QxInvalidValue::setValidator ( const IxValidator * p)

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 101 of file QxInvalidValue.h.

◆ operator<<

QX_DLL_EXPORT QDataStream & operator<< ( QDataStream & stream,
const qx::QxInvalidValue & t )
friend

◆ operator>>

QX_DLL_EXPORT QDataStream & operator>> ( QDataStream & stream,
qx::QxInvalidValue & t )
friend

◆ qx::cvt::detail::QxConvert_FromJson< qx::QxInvalidValue >

Definition at line 105 of file QxInvalidValue.h.

◆ qx::cvt::detail::QxConvert_FromJson_Helper

QX_DLL_EXPORT qx_bool qx::cvt::detail::QxConvert_FromJson_Helper ( const QJsonValue & j,
qx::QxInvalidValue & t,
const QString & format )
friend

◆ qx::cvt::detail::QxConvert_ToJson< qx::QxInvalidValue >

Definition at line 105 of file QxInvalidValue.h.

◆ qx::cvt::detail::QxConvert_ToJson_Helper

QX_DLL_EXPORT QJsonValue qx::cvt::detail::QxConvert_ToJson_Helper ( const qx::QxInvalidValue & t,
const QString & format )
friend

Member Data Documentation

◆ m_pValidator

const IxValidator* qx::QxInvalidValue::m_pValidator
protected

IxValidator class associated to the invalid value.

Definition at line 119 of file QxInvalidValue.h.

◆ m_sMessage

QString qx::QxInvalidValue::m_sMessage
protected

Message associated to the invalid value.

Definition at line 116 of file QxInvalidValue.h.

◆ m_sPath

QString qx::QxInvalidValue::m_sPath
protected

Path of property failing to pass the constraint.

Definition at line 118 of file QxInvalidValue.h.

◆ m_sPropertyName

QString qx::QxInvalidValue::m_sPropertyName
protected

Property name failing to pass the constraint.

Definition at line 117 of file QxInvalidValue.h.


The documentation for this class was generated from the following file: