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

qx_bool : boolean type with code and description message when an error occured More...

#include <QxBool.h>

Public Member Functions

 QxBool ()
 
 QxBool (bool b)
 
 QxBool (long lCode, const QString &sDesc)
 
 QxBool (bool bValue, long lCode, const QString &sDesc)
 
 QxBool (const QxBool &other)
 
 ~QxBool ()
 
bool getValue () const
 
long getCode () const
 
QString getDesc () const
 
void setValue (bool bValue)
 
void setCode (long lCode)
 
void setDesc (const QString &sDesc)
 
QxBooloperator= (const QxBool &other)
 
QxBooloperator= (const bool b)
 
 operator bool () const
 
bool operator! () const
 
bool operator== (const QxBool &other) const
 
bool operator== (const bool b) const
 
bool operator!= (const QxBool &other) const
 
bool operator!= (const bool b) const
 
bool operator&& (const QxBool &other) const
 
bool operator&& (const bool b) const
 
bool operator|| (const QxBool &other) const
 
bool operator|| (const bool b) const
 
QString toString () const
 
void fromString (const QString &s)
 

Private Member Functions

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

Private Attributes

bool m_bValue
 Data boolean value.
 
long m_lCode
 Error code when value is false.
 
QString m_sDesc
 Error description when value is false.
 

Friends

class boost::serialization::access
 
QX_DLL_EXPORT QDataStream & operator<< (QDataStream &stream, const qx::QxBool &t)
 
QX_DLL_EXPORT QDataStream & operator>> (QDataStream &stream, qx::QxBool &t)
 

Detailed Description

qx_bool : boolean type with code and description message when an error occured

Definition at line 70 of file QxBool.h.

Constructor & Destructor Documentation

◆ QxBool() [1/5]

qx::QxBool::QxBool ( )
inline

Definition at line 88 of file QxBool.h.

◆ QxBool() [2/5]

qx::QxBool::QxBool ( bool b)
inline

Definition at line 89 of file QxBool.h.

◆ QxBool() [3/5]

qx::QxBool::QxBool ( long lCode,
const QString & sDesc )
inline

Definition at line 90 of file QxBool.h.

◆ QxBool() [4/5]

qx::QxBool::QxBool ( bool bValue,
long lCode,
const QString & sDesc )
inline

Definition at line 91 of file QxBool.h.

◆ QxBool() [5/5]

qx::QxBool::QxBool ( const QxBool & other)
inline

Definition at line 92 of file QxBool.h.

◆ ~QxBool()

qx::QxBool::~QxBool ( )
inline

Definition at line 93 of file QxBool.h.

Member Function Documentation

◆ checkInitialized()

bool qx::QxBool::checkInitialized ( const bool b) const
inlineprivate

Definition at line 144 of file QxBool.h.

◆ fromString()

void qx::QxBool::fromString ( const QString & s)
inline

Definition at line 120 of file QxBool.h.

◆ getCode()

long qx::QxBool::getCode ( ) const
inline

Definition at line 96 of file QxBool.h.

◆ getDesc()

QString qx::QxBool::getDesc ( ) const
inline

Definition at line 97 of file QxBool.h.

◆ getValue()

bool qx::QxBool::getValue ( ) const
inline

Definition at line 95 of file QxBool.h.

◆ operator bool()

qx::QxBool::operator bool ( ) const
inline

Definition at line 106 of file QxBool.h.

◆ operator!()

bool qx::QxBool::operator! ( ) const
inline

Definition at line 107 of file QxBool.h.

◆ operator!=() [1/2]

bool qx::QxBool::operator!= ( const bool b) const
inline

Definition at line 112 of file QxBool.h.

◆ operator!=() [2/2]

bool qx::QxBool::operator!= ( const QxBool & other) const
inline

Definition at line 111 of file QxBool.h.

◆ operator&&() [1/2]

bool qx::QxBool::operator&& ( const bool b) const
inline

Definition at line 114 of file QxBool.h.

◆ operator&&() [2/2]

bool qx::QxBool::operator&& ( const QxBool & other) const
inline

Definition at line 113 of file QxBool.h.

◆ operator=() [1/2]

QxBool & qx::QxBool::operator= ( const bool b)
inline

Definition at line 104 of file QxBool.h.

◆ operator=() [2/2]

QxBool & qx::QxBool::operator= ( const QxBool & other)
inline

Definition at line 103 of file QxBool.h.

◆ operator==() [1/2]

bool qx::QxBool::operator== ( const bool b) const
inline

Definition at line 110 of file QxBool.h.

◆ operator==() [2/2]

bool qx::QxBool::operator== ( const QxBool & other) const
inline

Definition at line 109 of file QxBool.h.

◆ operator||() [1/2]

bool qx::QxBool::operator|| ( const bool b) const
inline

Definition at line 116 of file QxBool.h.

◆ operator||() [2/2]

bool qx::QxBool::operator|| ( const QxBool & other) const
inline

Definition at line 115 of file QxBool.h.

◆ serialize()

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

Definition at line 135 of file QxBool.h.

◆ setCode()

void qx::QxBool::setCode ( long lCode)
inline

Definition at line 100 of file QxBool.h.

◆ setDesc()

void qx::QxBool::setDesc ( const QString & sDesc)
inline

Definition at line 101 of file QxBool.h.

◆ setValue()

void qx::QxBool::setValue ( bool bValue)
inline

Definition at line 99 of file QxBool.h.

◆ toString()

QString qx::QxBool::toString ( ) const
inline

Definition at line 118 of file QxBool.h.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 74 of file QxBool.h.

◆ operator<<

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

◆ operator>>

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

Member Data Documentation

◆ m_bValue

bool qx::QxBool::m_bValue
private

Data boolean value.

Definition at line 82 of file QxBool.h.

◆ m_lCode

long qx::QxBool::m_lCode
private

Error code when value is false.

Definition at line 83 of file QxBool.h.

◆ m_sDesc

QString qx::QxBool::m_sDesc
private

Error description when value is false.

Definition at line 84 of file QxBool.h.


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