MagicSmoke
$VERSION$
|
This is a helper for parsing seat plans: it defines a virtual group of categories. More...
#include <srcMOSeatPlanVGroupAbstract.h>
Public Member Functions | |
MOSeatPlanVGroupAbstract () | |
default constructor: constructs an invalid instance of MOSeatPlanVGroupAbstract More... | |
MOSeatPlanVGroupAbstract (const MOSeatPlanVGroupAbstract &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOSeatPlanVGroupAbstract (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOSeatPlanVGroupAbstract () |
destructor: deletes this copy of the object More... | |
virtual Nullable< QString > | capacity () const |
amount of seats in this (part of the) group More... | |
virtual Nullable< QString > | name () const |
human readable name of the group More... | |
MOSeatPlanVGroupAbstract & | operator= (const MOSeatPlanVGroupAbstract &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual Nullable< QString > | price () const |
definition of categories in this group More... | |
virtual void | setcapacity (Nullable< QString > s) |
amount of seats in this (part of the) group More... | |
virtual void | setname (Nullable< QString > s) |
human readable name of the group More... | |
virtual void | setprice (Nullable< QString > s) |
definition of categories in this group More... | |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="SeatPlanVGroup") |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself. More... | |
void | toXml (QDomDocument &, QDomElement &) |
Serializes the object into the given element. More... | |
Static Public Member Functions | |
static MOSeatPlanVGroupAbstract | fromString (const QString &) |
create MOSeatPlanVGroupAbstract from XML formatted string (inverse of toString) More... | |
static MOSeatPlanVGroupAbstract | fromXml (const QDomElement &) |
create MOSeatPlanVGroupAbstract from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< QString > | mp_capacity |
Nullable< QString > | mp_name |
Nullable< QString > | mp_price |
This is a helper for parsing seat plans: it defines a virtual group of categories.
|
inline |
default constructor: constructs an invalid instance of MOSeatPlanVGroupAbstract
Referenced by fromString(), and fromXml().
MOSeatPlanVGroupAbstract::MOSeatPlanVGroupAbstract | ( | const MOSeatPlanVGroupAbstract & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_capacity, mp_name, and mp_price.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setcapacity(), setname(), and setprice().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
amount of seats in this (part of the) group
|
static |
create MOSeatPlanVGroupAbstract from XML formatted string (inverse of toString)
References MOSeatPlanVGroupAbstract().
|
static |
create MOSeatPlanVGroupAbstract from XML (inverse of toXml)
References MOSeatPlanVGroupAbstract().
|
inlinevirtual |
human readable name of the group
MOSeatPlanVGroupAbstract & MOSeatPlanVGroupAbstract::operator= | ( | const MOSeatPlanVGroupAbstract & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_capacity, mp_name, and mp_price.
|
inlinevirtual |
definition of categories in this group
|
inlinevirtual |
amount of seats in this (part of the) group
Referenced by MOSeatPlanVGroupAbstract().
|
inlinevirtual |
human readable name of the group
Referenced by MOSeatPlanVGroupAbstract().
|
inlinevirtual |
definition of categories in this group
Referenced by MOSeatPlanVGroupAbstract().
QString MOSeatPlanVGroupAbstract::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOSeatPlanVGroupAbstract::toXml | ( | QDomDocument & | doc, |
QString | name = "SeatPlanVGroup" |
||
) |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself.
doc | the DOM document node for which to generate the element |
name | the name to give the generated element, per default "MOSeatPlanVGroupAbstract" is used |
Referenced by toString().
void MOSeatPlanVGroupAbstract::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_capacity, mp_name, and mp_price.
|
protected |
Referenced by MOSeatPlanVGroupAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanVGroupAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanVGroupAbstract(), operator=(), and toXml().