MagicSmoke  $VERSION$
MOSeatPlanGroupAbstract Class Reference

This is a helper for parsing seat plans: it defines a group of rows of seats. More...

#include <srcMOSeatPlanGroupAbstract.h>

Inheritance diagram for MOSeatPlanGroupAbstract:
MOSeatPlanGroup

Public Member Functions

 MOSeatPlanGroupAbstract ()
 default constructor: constructs an invalid instance of MOSeatPlanGroupAbstract More...
 
 MOSeatPlanGroupAbstract (const MOSeatPlanGroupAbstract &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOSeatPlanGroupAbstract (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOSeatPlanGroupAbstract ()
 destructor: deletes this copy of the object More...
 
virtual void addRow (Nullable< MOSeatPlanRow > a)
 
virtual Nullable< qint64 > angle () const
 GUI: rotation of the group rectangle. More...
 
virtual Nullable< QString > bgcolor () const
 GUI: background color. More...
 
virtual Nullable< QString > capacity () const
 amount of seats in this (part of the) group More...
 
virtual void clearRow ()
 
virtual Nullable< QString > fgcolor () const
 GUI: foreground color, the one the group name is rendered in. More...
 
virtual Nullable< QString > geo () const
 GUI: geometry information for the group. More...
 
virtual Nullable< QString > id () const
 the ID of this group, if multiple group elements with the same ID exist, they refer to different sections of the same group More...
 
virtual Nullable< QString > name () const
 human readable name of the group More...
 
virtual Nullable< bool > numbered () const
 defines whether the group contains numbered seats More...
 
MOSeatPlanGroupAbstractoperator= (const MOSeatPlanGroupAbstract &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual Nullable< QString > price () const
 The price categories in this group. More...
 
virtual QList< MOSeatPlanRowRow () const
 definition of rows in this group More...
 
virtual void setangle (Nullable< qint64 > s)
 GUI: rotation of the group rectangle. More...
 
virtual void setbgcolor (Nullable< QString > s)
 GUI: background color. More...
 
virtual void setcapacity (Nullable< QString > s)
 amount of seats in this (part of the) group More...
 
virtual void setfgcolor (Nullable< QString > s)
 GUI: foreground color, the one the group name is rendered in. More...
 
virtual void setgeo (Nullable< QString > s)
 GUI: geometry information for the group. More...
 
virtual void setid (Nullable< QString > s)
 the ID of this group, if multiple group elements with the same ID exist, they refer to different sections of the same group More...
 
virtual void setname (Nullable< QString > s)
 human readable name of the group More...
 
virtual void setnumbered (Nullable< bool > s)
 defines whether the group contains numbered seats More...
 
virtual void setprice (Nullable< QString > s)
 The price categories in this group. More...
 
virtual void setRow (QList< MOSeatPlanRow > s)
 definition of rows 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="SeatPlanGroup")
 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 MOSeatPlanGroupAbstract fromString (const QString &)
 create MOSeatPlanGroupAbstract from XML formatted string (inverse of toString) More...
 
static MOSeatPlanGroupAbstract fromXml (const QDomElement &)
 create MOSeatPlanGroupAbstract from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< qint64 > mp_angle
 
Nullable< QString > mp_bgcolor
 
Nullable< QString > mp_capacity
 
Nullable< QString > mp_fgcolor
 
Nullable< QString > mp_geo
 
Nullable< QString > mp_id
 
Nullable< QString > mp_name
 
Nullable< bool > mp_numbered
 
Nullable< QString > mp_price
 
QList< MOSeatPlanRowmp_Row
 

Detailed Description

This is a helper for parsing seat plans: it defines a group of rows of seats.

Constructor & Destructor Documentation

MOSeatPlanGroupAbstract::MOSeatPlanGroupAbstract ( )
inline

default constructor: constructs an invalid instance of MOSeatPlanGroupAbstract

Referenced by fromString(), and fromXml().

MOSeatPlanGroupAbstract::MOSeatPlanGroupAbstract ( const MOSeatPlanGroupAbstract o)

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

References mp_angle, mp_bgcolor, mp_capacity, mp_fgcolor, mp_geo, mp_id, mp_name, mp_numbered, mp_price, and mp_Row.

MOSeatPlanGroupAbstract::MOSeatPlanGroupAbstract ( const QDomElement &  root)
explicit

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

References addRow(), setangle(), setbgcolor(), setcapacity(), setfgcolor(), setgeo(), setid(), setname(), setnumbered(), and setprice().

virtual MOSeatPlanGroupAbstract::~MOSeatPlanGroupAbstract ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual void MOSeatPlanGroupAbstract::addRow ( Nullable< MOSeatPlanRow a)
inlinevirtual

Referenced by MOSeatPlanGroupAbstract().

virtual Nullable<qint64> MOSeatPlanGroupAbstract::angle ( ) const
inlinevirtual

GUI: rotation of the group rectangle.

virtual Nullable<QString> MOSeatPlanGroupAbstract::bgcolor ( ) const
inlinevirtual

GUI: background color.

virtual Nullable<QString> MOSeatPlanGroupAbstract::capacity ( ) const
inlinevirtual

amount of seats in this (part of the) group

virtual void MOSeatPlanGroupAbstract::clearRow ( )
inlinevirtual
virtual Nullable<QString> MOSeatPlanGroupAbstract::fgcolor ( ) const
inlinevirtual

GUI: foreground color, the one the group name is rendered in.

MOSeatPlanGroupAbstract MOSeatPlanGroupAbstract::fromString ( const QString &  txt)
static

create MOSeatPlanGroupAbstract from XML formatted string (inverse of toString)

References MOSeatPlanGroupAbstract().

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

create MOSeatPlanGroupAbstract from XML (inverse of toXml)

References MOSeatPlanGroupAbstract().

virtual Nullable<QString> MOSeatPlanGroupAbstract::geo ( ) const
inlinevirtual

GUI: geometry information for the group.

virtual Nullable<QString> MOSeatPlanGroupAbstract::id ( ) const
inlinevirtual

the ID of this group, if multiple group elements with the same ID exist, they refer to different sections of the same group

virtual Nullable<QString> MOSeatPlanGroupAbstract::name ( ) const
inlinevirtual

human readable name of the group

virtual Nullable<bool> MOSeatPlanGroupAbstract::numbered ( ) const
inlinevirtual

defines whether the group contains numbered seats

MOSeatPlanGroupAbstract & MOSeatPlanGroupAbstract::operator= ( const MOSeatPlanGroupAbstract o)

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

References mp_angle, mp_bgcolor, mp_capacity, mp_fgcolor, mp_geo, mp_id, mp_name, mp_numbered, mp_price, and mp_Row.

virtual Nullable<QString> MOSeatPlanGroupAbstract::price ( ) const
inlinevirtual

The price categories in this group.

virtual QList<MOSeatPlanRow> MOSeatPlanGroupAbstract::Row ( ) const
inlinevirtual

definition of rows in this group

virtual void MOSeatPlanGroupAbstract::setangle ( Nullable< qint64 >  s)
inlinevirtual

GUI: rotation of the group rectangle.

Referenced by MOSeatPlanGroupAbstract().

virtual void MOSeatPlanGroupAbstract::setbgcolor ( Nullable< QString >  s)
inlinevirtual

GUI: background color.

Referenced by MOSeatPlanGroupAbstract().

virtual void MOSeatPlanGroupAbstract::setcapacity ( Nullable< QString >  s)
inlinevirtual

amount of seats in this (part of the) group

Referenced by MOSeatPlanGroupAbstract().

virtual void MOSeatPlanGroupAbstract::setfgcolor ( Nullable< QString >  s)
inlinevirtual

GUI: foreground color, the one the group name is rendered in.

Referenced by MOSeatPlanGroupAbstract().

virtual void MOSeatPlanGroupAbstract::setgeo ( Nullable< QString >  s)
inlinevirtual

GUI: geometry information for the group.

Referenced by MOSeatPlanGroupAbstract().

virtual void MOSeatPlanGroupAbstract::setid ( Nullable< QString >  s)
inlinevirtual

the ID of this group, if multiple group elements with the same ID exist, they refer to different sections of the same group

Referenced by MOSeatPlanGroupAbstract().

virtual void MOSeatPlanGroupAbstract::setname ( Nullable< QString >  s)
inlinevirtual

human readable name of the group

Referenced by MOSeatPlanGroupAbstract().

virtual void MOSeatPlanGroupAbstract::setnumbered ( Nullable< bool >  s)
inlinevirtual

defines whether the group contains numbered seats

Referenced by MOSeatPlanGroupAbstract().

virtual void MOSeatPlanGroupAbstract::setprice ( Nullable< QString >  s)
inlinevirtual

The price categories in this group.

Referenced by MOSeatPlanGroupAbstract().

virtual void MOSeatPlanGroupAbstract::setRow ( QList< MOSeatPlanRow s)
inlinevirtual

definition of rows in this group

QString MOSeatPlanGroupAbstract::toString ( )

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

References toXml().

QDomElement MOSeatPlanGroupAbstract::toXml ( QDomDocument &  doc,
QString  name = "SeatPlanGroup" 
)

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 "MOSeatPlanGroupAbstract" is used

Referenced by toString(), and toXml().

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

Serializes the object into the given element.

References mp_angle, mp_bgcolor, mp_capacity, mp_fgcolor, mp_geo, mp_id, mp_name, mp_numbered, mp_price, mp_Row, and toXml().

Member Data Documentation

Nullable<qint64> MOSeatPlanGroupAbstract::mp_angle
protected
Nullable<QString> MOSeatPlanGroupAbstract::mp_bgcolor
protected
Nullable<QString> MOSeatPlanGroupAbstract::mp_capacity
protected
Nullable<QString> MOSeatPlanGroupAbstract::mp_fgcolor
protected
Nullable<QString> MOSeatPlanGroupAbstract::mp_geo
protected
Nullable<QString> MOSeatPlanGroupAbstract::mp_id
protected
Nullable<QString> MOSeatPlanGroupAbstract::mp_name
protected
Nullable<bool> MOSeatPlanGroupAbstract::mp_numbered
protected
Nullable<QString> MOSeatPlanGroupAbstract::mp_price
protected
QList<MOSeatPlanRow> MOSeatPlanGroupAbstract::mp_Row
protected

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