7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
18 Q_PROPERTY(Nullable<QString>
id READ
id WRITE setid)
20 Q_PROPERTY(Nullable<qint64> capacity READ capacity WRITE setcapacity)
22 Q_PROPERTY(Nullable<QString> description READ description WRITE setdescription)
29 virtual Nullable<QString>
id()
const{
return mp_id;}
31 virtual Nullable<qint64>
capacity()
const{
return mp_capacity;}
33 virtual Nullable<QString>
description()
const{
return mp_description;}
35 virtual void setid(Nullable<QString> s){mp_id=s;}
46 QDomElement toXml(QDomDocument&doc,QString name=
"Room");
48 void toXml(QDomDocument&,QDomElement&);
57 explicit MORoom(
const QDomElement&);
59 static MORoom fromXml(
const QDomElement&);
61 static MORoom fromString(
const QString&);
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMORoom.h:8
Definition: srcMORoom.h:14
virtual void setid(Nullable< QString > s)
Definition: srcMORoom.h:35
virtual void setcapacity(Nullable< qint64 > s)
Definition: srcMORoom.h:37
virtual Nullable< QString > description() const
Definition: srcMORoom.h:33
MORoom()
default constructor: constructs an invalid instance of MORoom
Definition: srcMORoom.h:51
virtual void setdescription(Nullable< QString > s)
Definition: srcMORoom.h:39
virtual ~MORoom()
destructor: deletes this copy of the object
Definition: srcMORoom.h:63
virtual Nullable< qint64 > capacity() const
Definition: srcMORoom.h:31
Nullable< QString > mp_description
Definition: srcMORoom.h:26
Nullable< QString > mp_id
Definition: srcMORoom.h:24
Q_DECLARE_METATYPE(QDomNode)
Nullable< qint64 > mp_capacity
Definition: srcMORoom.h:25
virtual Nullable< QString > id() const
Definition: srcMORoom.h:29