MagicSmoke  $VERSION$
srcMORoom.h
Go to the documentation of this file.
1 //BEGIN OF AUTOMATICALLY GENERATED FILE
2 //DO NOT EDIT THIS FILE DIRECTLY, USE THE XML SOURCE!
3 #ifndef WOBGEN_MORoom
4 #define WOBGEN_MORoom
5 
6 
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
9 #endif
10 
11 #include "WObject"
12 #include <QCoreApplication>
13 
15 {
16  Q_GADGET
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)
23  protected:
24  Nullable<QString> mp_id;
25  Nullable<qint64> mp_capacity;
26  Nullable<QString> mp_description;
27  public:
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;}
37  virtual void setcapacity(Nullable<qint64> s){mp_capacity=s;}
39  virtual void setdescription(Nullable<QString> s){mp_description=s;}
40  public:
42  QString toString();
46  QDomElement toXml(QDomDocument&doc,QString name="Room");
48  void toXml(QDomDocument&,QDomElement&);
49  public:
51  MORoom():WObject(){}
53  MORoom(const MORoom&);
55  MORoom& operator=(const MORoom&);
57  explicit MORoom(const QDomElement&);
59  static MORoom fromXml(const QDomElement&);
61  static MORoom fromString(const QString&);
63  virtual ~MORoom(){}
64 
65 };
68 Q_DECLARE_METATYPE(Nullable<MORoom>)
69 
70 //END OF AUTOMATICALLY GENERATED FILE
71 #endif
#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