QxOrm  1.5.0
C++ Object Relational Mapping library

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

#include <QxBool.h>

List of all members.

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

qx::QxBool::QxBool ( ) [inline]

Definition at line 88 of file QxBool.h.

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

Definition at line 89 of file QxBool.h.

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

Definition at line 90 of file QxBool.h.

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

Definition at line 91 of file QxBool.h.

qx::QxBool::QxBool ( const QxBool other) [inline]

Definition at line 92 of file QxBool.h.

qx::QxBool::~QxBool ( ) [inline]

Definition at line 93 of file QxBool.h.


Member Function Documentation

bool qx::QxBool::checkInitialized ( const bool  b) const [inline, private]

Definition at line 144 of file QxBool.h.

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

Definition at line 120 of file QxBool.h.

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

Definition at line 96 of file QxBool.h.

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

Definition at line 97 of file QxBool.h.

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

Definition at line 95 of file QxBool.h.

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

Definition at line 106 of file QxBool.h.

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

Definition at line 107 of file QxBool.h.

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

Definition at line 111 of file QxBool.h.

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

Definition at line 112 of file QxBool.h.

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

Definition at line 113 of file QxBool.h.

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

Definition at line 114 of file QxBool.h.

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

Definition at line 103 of file QxBool.h.

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

Definition at line 104 of file QxBool.h.

bool qx::QxBool::operator== ( const QxBool other) const [inline]

Definition at line 109 of file QxBool.h.

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

Definition at line 110 of file QxBool.h.

bool qx::QxBool::operator|| ( const QxBool other) const [inline]

Definition at line 115 of file QxBool.h.

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

Definition at line 116 of file QxBool.h.

template<class Archive >
void qx::QxBool::serialize ( Archive &  ar,
const unsigned int  file_version 
) [inline, private]

Definition at line 135 of file QxBool.h.

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

Definition at line 100 of file QxBool.h.

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

Definition at line 101 of file QxBool.h.

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

Definition at line 99 of file QxBool.h.

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

Definition at line 118 of file QxBool.h.


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Definition at line 74 of file QxBool.h.

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

Member Data Documentation

bool qx::QxBool::m_bValue [private]

Data boolean value.

Definition at line 82 of file QxBool.h.

long qx::QxBool::m_lCode [private]

Error code when value is false.

Definition at line 83 of file QxBool.h.

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: