11 #include <QCoreApplication>
29 virtual QDomElement toXml(QDomDocument&,QString name=
"Object");
32 virtual void toXml(QDomDocument&,QDomElement&){}
35 static QList<QDomElement>elementsByTagName(
const QDomElement&,QString);
38 bool str2bool(QString s);
49 #define WOBJECT(wob) public: \
50 wob():wob ## Abstract(){} \
51 wob(const wob&w):wob ## Abstract(w){} \
52 wob(wob&&w):wob ## Abstract(w){} \
53 wob(const wob ## Abstract&w):wob ## Abstract(w){} \
54 wob(wob ## Abstract&&w):wob ## Abstract(w){} \
55 wob(const QDomElement&w):wob ## Abstract(w){} \
56 wob& operator=(const wob&w){wob ## Abstract::operator=(w);return *this;} \
57 wob& operator=(const wob ## Abstract&w){wob ## Abstract::operator=(w);return *this;} \
58 wob& operator=(wob&&w){wob ## Abstract::operator=(w);return *this;} \
59 wob& operator=(wob ## Abstract&&w){wob ## Abstract::operator=(w);return *this;} \
61 QString tr(const char*text,const char*comment=nullptr)const{return QCoreApplication::translate("" # wob ,text,comment);}
WDeserializerException(QString e)
Definition: object.h:45
virtual WObject & operator=(WObject &&)
Definition: object.h:31
WObject()
Definition: object.h:24
WObject(const WObject &)
Definition: object.h:25
virtual ~WObject()
Definition: object.h:28
WObject(WObject &&)
Definition: object.h:26
WObject(const QDomElement &)
Definition: object.h:27
virtual WObject & operator=(const WObject &)
Definition: object.h:30
virtual void toXml(QDomDocument &, QDomElement &)
Definition: object.h:32
Definition: exception.h:16
#define WOLF_BASE_EXPORT
Definition: exception.h:13