MagicSmoke  $VERSION$
MOSeatPlan Class Reference

This class is used to parse seat plans on either side. More...

#include <seatplanobj2.h>

Inheritance diagram for MOSeatPlan:

Public Member Functions

 MOSeatPlan ()
 default constructor: constructs an invalid instance of MOSeatPlan More...
 
 MOSeatPlan (const MOSeatPlan &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOSeatPlan (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOSeatPlan ()
 destructor: deletes this copy of the object More...
 
virtual void addBackground (Nullable< MOSeatPlanBackground > a)
 
virtual void addDefPrice (Nullable< MOSeatPlanDefPrice > a)
 
virtual void addGroup (Nullable< MOSeatPlanGroup > a)
 
virtual void addImage (Nullable< MOSeatPlanImage > a)
 
virtual void addVGroup (Nullable< MOSeatPlanVGroup > a)
 
virtual QList
< MOSeatPlanBackground
Background () const
 
virtual void clearBackground ()
 
virtual void clearDefPrice ()
 
virtual void clearGroup ()
 
virtual void clearImage ()
 
virtual void clearVGroup ()
 
virtual QList< MOSeatPlanDefPriceDefPrice () const
 
virtual Nullable< bool > exclusive () const
 If true: only categories listed can be sold, if false: unlisted categories are not restricted. More...
 
void f ()
 
virtual QList< MOSeatPlanGroupGroup () const
 
virtual QList< MOSeatPlanImageImage () const
 
MOSeatPlanoperator= (const MOSeatPlan &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setBackground (QList< MOSeatPlanBackground > s)
 
virtual void setDefPrice (QList< MOSeatPlanDefPrice > s)
 
virtual void setexclusive (Nullable< bool > s)
 If true: only categories listed can be sold, if false: unlisted categories are not restricted. More...
 
virtual void setGroup (QList< MOSeatPlanGroup > s)
 
virtual void setImage (QList< MOSeatPlanImage > s)
 
virtual void setversion (Nullable< qint64 > s)
 Version of the SeatPlan spec that was implemented. More...
 
virtual void setVGroup (QList< MOSeatPlanVGroup > s)
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="SeatPlan")
 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...
 
virtual Nullable< qint64 > version () const
 Version of the SeatPlan spec that was implemented. More...
 
virtual QList< MOSeatPlanVGroupVGroup () const
 

Static Public Member Functions

static MOSeatPlan fromString (const QString &)
 create MOSeatPlan from XML formatted string (inverse of toString) More...
 
static MOSeatPlan fromXml (const QDomElement &)
 create MOSeatPlan from XML (inverse of toXml) More...
 

Protected Attributes

QList< MOSeatPlanBackgroundmp_Background
 
QList< MOSeatPlanDefPricemp_DefPrice
 
Nullable< bool > mp_exclusive
 
QList< MOSeatPlanGroupmp_Group
 
QList< MOSeatPlanImagemp_Image
 
Nullable< qint64 > mp_version
 
QList< MOSeatPlanVGroupmp_VGroup
 

Detailed Description

This class is used to parse seat plans on either side.

It is not sent over the wire, since it is just a helper class.

Constructor & Destructor Documentation

MOSeatPlan::MOSeatPlan ( )
inline

default constructor: constructs an invalid instance of MOSeatPlan

Referenced by fromString(), and fromXml().

MOSeatPlan::MOSeatPlan ( const MOSeatPlan o)

copy constructor: creates a (deep) copy of the object

References mp_Background, mp_DefPrice, mp_exclusive, mp_Group, mp_Image, mp_version, and mp_VGroup.

MOSeatPlan::MOSeatPlan ( const QDomElement &  root)
explicit

special constructor: create from the XML representation, deserializing the object

References addBackground(), addDefPrice(), addGroup(), addImage(), addVGroup(), setexclusive(), and setversion().

virtual MOSeatPlan::~MOSeatPlan ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual void MOSeatPlan::addBackground ( Nullable< MOSeatPlanBackground a)
inlinevirtual

Referenced by MOSeatPlan().

virtual void MOSeatPlan::addDefPrice ( Nullable< MOSeatPlanDefPrice a)
inlinevirtual

Referenced by MOSeatPlan().

virtual void MOSeatPlan::addGroup ( Nullable< MOSeatPlanGroup a)
inlinevirtual

Referenced by MOSeatPlan().

virtual void MOSeatPlan::addImage ( Nullable< MOSeatPlanImage a)
inlinevirtual

Referenced by MOSeatPlan().

virtual void MOSeatPlan::addVGroup ( Nullable< MOSeatPlanVGroup a)
inlinevirtual

Referenced by MOSeatPlan().

virtual QList<MOSeatPlanBackground> MOSeatPlan::Background ( ) const
inlinevirtual
virtual void MOSeatPlan::clearBackground ( )
inlinevirtual
virtual void MOSeatPlan::clearDefPrice ( )
inlinevirtual
virtual void MOSeatPlan::clearGroup ( )
inlinevirtual
virtual void MOSeatPlan::clearImage ( )
inlinevirtual
virtual void MOSeatPlan::clearVGroup ( )
inlinevirtual
virtual QList<MOSeatPlanDefPrice> MOSeatPlan::DefPrice ( ) const
inlinevirtual
virtual Nullable<bool> MOSeatPlan::exclusive ( ) const
inlinevirtual

If true: only categories listed can be sold, if false: unlisted categories are not restricted.

void MOSeatPlan::f ( )
inline
MOSeatPlan MOSeatPlan::fromString ( const QString &  txt)
static

create MOSeatPlan from XML formatted string (inverse of toString)

References MOSeatPlan().

Referenced by MOEventSaleInfo::seatplanAdjusted().

MOSeatPlan MOSeatPlan::fromXml ( const QDomElement &  root)
static

create MOSeatPlan from XML (inverse of toXml)

References MOSeatPlan().

virtual QList<MOSeatPlanGroup> MOSeatPlan::Group ( ) const
inlinevirtual
virtual QList<MOSeatPlanImage> MOSeatPlan::Image ( ) const
inlinevirtual
MOSeatPlan & MOSeatPlan::operator= ( const MOSeatPlan o)

copy assignment: creates a (deep) copy of the object

References mp_Background, mp_DefPrice, mp_exclusive, mp_Group, mp_Image, mp_version, and mp_VGroup.

virtual void MOSeatPlan::setBackground ( QList< MOSeatPlanBackground s)
inlinevirtual
virtual void MOSeatPlan::setDefPrice ( QList< MOSeatPlanDefPrice s)
inlinevirtual
virtual void MOSeatPlan::setexclusive ( Nullable< bool >  s)
inlinevirtual

If true: only categories listed can be sold, if false: unlisted categories are not restricted.

Referenced by MOSeatPlan().

virtual void MOSeatPlan::setGroup ( QList< MOSeatPlanGroup s)
inlinevirtual
virtual void MOSeatPlan::setImage ( QList< MOSeatPlanImage s)
inlinevirtual
virtual void MOSeatPlan::setversion ( Nullable< qint64 >  s)
inlinevirtual

Version of the SeatPlan spec that was implemented.

Referenced by MOSeatPlan().

virtual void MOSeatPlan::setVGroup ( QList< MOSeatPlanVGroup s)
inlinevirtual
QString MOSeatPlan::toString ( )

Serializes the object to XML and returns the string representation of that XML.

References toXml().

QDomElement MOSeatPlan::toXml ( QDomDocument &  doc,
QString  name = "SeatPlan" 
)

Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself.

Parameters
docthe DOM document node for which to generate the element
namethe name to give the generated element, per default "MOSeatPlan" is used

Referenced by toString(), and toXml().

void MOSeatPlan::toXml ( QDomDocument &  doc,
QDomElement &  r 
)

Serializes the object into the given element.

References mp_Background, mp_DefPrice, mp_exclusive, mp_Group, mp_Image, mp_version, mp_VGroup, and toXml().

virtual Nullable<qint64> MOSeatPlan::version ( ) const
inlinevirtual

Version of the SeatPlan spec that was implemented.

virtual QList<MOSeatPlanVGroup> MOSeatPlan::VGroup ( ) const
inlinevirtual

Member Data Documentation

QList<MOSeatPlanBackground> MOSeatPlan::mp_Background
protected

Referenced by MOSeatPlan(), operator=(), and toXml().

QList<MOSeatPlanDefPrice> MOSeatPlan::mp_DefPrice
protected

Referenced by MOSeatPlan(), operator=(), and toXml().

Nullable<bool> MOSeatPlan::mp_exclusive
protected

Referenced by MOSeatPlan(), operator=(), and toXml().

QList<MOSeatPlanGroup> MOSeatPlan::mp_Group
protected

Referenced by MOSeatPlan(), operator=(), and toXml().

QList<MOSeatPlanImage> MOSeatPlan::mp_Image
protected

Referenced by MOSeatPlan(), operator=(), and toXml().

Nullable<qint64> MOSeatPlan::mp_version
protected

Referenced by MOSeatPlan(), operator=(), and toXml().

QList<MOSeatPlanVGroup> MOSeatPlan::mp_VGroup
protected

Referenced by MOSeatPlan(), operator=(), and toXml().


The documentation for this class was generated from the following files: