MagicSmoke  $VERSION$
srcMOSeatPlanVGroupAbstract.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_MOSeatPlanVGroupAbstract
4 #define WOBGEN_MOSeatPlanVGroupAbstract
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 
16 {
17  Q_GADGET
19  Q_PROPERTY(Nullable<QString> capacity READ capacity WRITE setcapacity)
21  Q_PROPERTY(Nullable<QString> name READ name WRITE setname)
23  Q_PROPERTY(Nullable<QString> price READ price WRITE setprice)
24  protected:
25  Nullable<QString> mp_capacity;
26  Nullable<QString> mp_name;
27  Nullable<QString> mp_price;
28  public:
30  virtual Nullable<QString> capacity()const{return mp_capacity;}
32  virtual Nullable<QString> name()const{return mp_name;}
34  virtual Nullable<QString> price()const{return mp_price;}
36  virtual void setcapacity(Nullable<QString> s){mp_capacity=s;}
38  virtual void setname(Nullable<QString> s){mp_name=s;}
40  virtual void setprice(Nullable<QString> s){mp_price=s;}
41  public:
43  QString toString();
47  QDomElement toXml(QDomDocument&doc,QString name="SeatPlanVGroup");
49  void toXml(QDomDocument&,QDomElement&);
50  public:
58  explicit MOSeatPlanVGroupAbstract(const QDomElement&);
60  static MOSeatPlanVGroupAbstract fromXml(const QDomElement&);
62  static MOSeatPlanVGroupAbstract fromString(const QString&);
65 
66 };
70 
71 //END OF AUTOMATICALLY GENERATED FILE
72 #endif
virtual void setcapacity(Nullable< QString > s)
amount of seats in this (part of the) group
Definition: srcMOSeatPlanVGroupAbstract.h:36
Nullable< QString > mp_capacity
Definition: srcMOSeatPlanVGroupAbstract.h:25
virtual Nullable< QString > price() const
definition of categories in this group
Definition: srcMOSeatPlanVGroupAbstract.h:34
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOSeatPlanVGroupAbstract.h:8
virtual void setname(Nullable< QString > s)
human readable name of the group
Definition: srcMOSeatPlanVGroupAbstract.h:38
MOSeatPlanVGroupAbstract()
default constructor: constructs an invalid instance of MOSeatPlanVGroupAbstract
Definition: srcMOSeatPlanVGroupAbstract.h:52
Nullable< QString > mp_name
Definition: srcMOSeatPlanVGroupAbstract.h:26
Q_DECLARE_METATYPE(QDomNode)
virtual void setprice(Nullable< QString > s)
definition of categories in this group
Definition: srcMOSeatPlanVGroupAbstract.h:40
Nullable< QString > mp_price
Definition: srcMOSeatPlanVGroupAbstract.h:27
virtual Nullable< QString > name() const
human readable name of the group
Definition: srcMOSeatPlanVGroupAbstract.h:32
virtual Nullable< QString > capacity() const
amount of seats in this (part of the) group
Definition: srcMOSeatPlanVGroupAbstract.h:30
This is a helper for parsing seat plans: it defines a virtual group of categories.
Definition: srcMOSeatPlanVGroupAbstract.h:15
virtual ~MOSeatPlanVGroupAbstract()
destructor: deletes this copy of the object
Definition: srcMOSeatPlanVGroupAbstract.h:64