MagicSmoke
$VERSION$
|
Default price categories for a seat plan. More...
#include <srcMOSeatPlanDefPriceAbstract.h>
Public Member Functions | |
MOSeatPlanDefPriceAbstract () | |
default constructor: constructs an invalid instance of MOSeatPlanDefPriceAbstract More... | |
MOSeatPlanDefPriceAbstract (const MOSeatPlanDefPriceAbstract &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOSeatPlanDefPriceAbstract (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOSeatPlanDefPriceAbstract () |
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 > | cost () const |
default cost definition More... | |
MOSeatPlanDefPriceAbstract & | operator= (const MOSeatPlanDefPriceAbstract &) |
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 | setcost (Nullable< QString > s) |
default cost definition 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="SeatPlanDefPrice") |
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 MOSeatPlanDefPriceAbstract | fromString (const QString &) |
create MOSeatPlanDefPriceAbstract from XML formatted string (inverse of toString) More... | |
static MOSeatPlanDefPriceAbstract | fromXml (const QDomElement &) |
create MOSeatPlanDefPriceAbstract from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< QString > | mp_capacity |
Nullable< QString > | mp_cost |
Nullable< QString > | mp_price |
Default price categories for a seat plan.
|
inline |
default constructor: constructs an invalid instance of MOSeatPlanDefPriceAbstract
Referenced by fromString(), and fromXml().
MOSeatPlanDefPriceAbstract::MOSeatPlanDefPriceAbstract | ( | const MOSeatPlanDefPriceAbstract & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_capacity, mp_cost, and mp_price.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setcapacity(), setcost(), and setprice().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
amount of seats in this (part of the) group
Referenced by MOSeatPlanDefPrice::isValid().
|
inlinevirtual |
default cost definition
Referenced by MOSeatPlanDefPrice::isValid().
|
static |
create MOSeatPlanDefPriceAbstract from XML formatted string (inverse of toString)
References MOSeatPlanDefPriceAbstract().
|
static |
create MOSeatPlanDefPriceAbstract from XML (inverse of toXml)
References MOSeatPlanDefPriceAbstract().
MOSeatPlanDefPriceAbstract & MOSeatPlanDefPriceAbstract::operator= | ( | const MOSeatPlanDefPriceAbstract & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_capacity, mp_cost, and mp_price.
|
inlinevirtual |
definition of categories in this group
Referenced by MOSeatPlanDefPrice::isValid().
|
inlinevirtual |
amount of seats in this (part of the) group
Referenced by MOSeatPlanDefPriceAbstract().
|
inlinevirtual |
default cost definition
Referenced by MOSeatPlanDefPriceAbstract().
|
inlinevirtual |
definition of categories in this group
Referenced by MOSeatPlanDefPriceAbstract().
QString MOSeatPlanDefPriceAbstract::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOSeatPlanDefPriceAbstract::toXml | ( | QDomDocument & | doc, |
QString | name = "SeatPlanDefPrice" |
||
) |
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 "MOSeatPlanDefPriceAbstract" is used |
Referenced by toString().
void MOSeatPlanDefPriceAbstract::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_capacity, mp_cost, and mp_price.
|
protected |
Referenced by MOSeatPlanDefPriceAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanDefPriceAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanDefPriceAbstract(), operator=(), and toXml().