MagicSmoke  $VERSION$
MOSeatPlanRow Class Reference

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

#include <srcMOSeatPlanRow.h>

Inheritance diagram for MOSeatPlanRow:

Public Member Functions

 MOSeatPlanRow ()
 default constructor: constructs an invalid instance of MOSeatPlanRow More...
 
 MOSeatPlanRow (const MOSeatPlanRow &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOSeatPlanRow (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOSeatPlanRow ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< QString > bgcolor () const
 GUI: background color for seats. More...
 
virtual Nullable< qint64 > capacity () const
 amount of seats in this (part of the) row More...
 
virtual Nullable< QString > fgcolor () const
 GUI: foreground color, the one the seat number is rendered in. More...
 
virtual Nullable< qint64 > first () const
 number of the first seat in this row More...
 
virtual Nullable< QString > geo () const
 GUI: geometry information for the row. More...
 
virtual Nullable< QString > id () const
 the ID of this group, if multiple row elements with the same ID exist, they refer to different sections of the same row More...
 
MOSeatPlanRowoperator= (const MOSeatPlanRow &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setbgcolor (Nullable< QString > s)
 GUI: background color for seats. More...
 
virtual void setcapacity (Nullable< qint64 > s)
 amount of seats in this (part of the) row More...
 
virtual void setfgcolor (Nullable< QString > s)
 GUI: foreground color, the one the seat number is rendered in. More...
 
virtual void setfirst (Nullable< qint64 > s)
 number of the first seat in this row More...
 
virtual void setgeo (Nullable< QString > s)
 GUI: geometry information for the row. More...
 
virtual void setid (Nullable< QString > s)
 the ID of this group, if multiple row elements with the same ID exist, they refer to different sections of the same row More...
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="SeatPlanRow")
 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 MOSeatPlanRow fromString (const QString &)
 create MOSeatPlanRow from XML formatted string (inverse of toString) More...
 
static MOSeatPlanRow fromXml (const QDomElement &)
 create MOSeatPlanRow from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< QString > mp_bgcolor
 
Nullable< qint64 > mp_capacity
 
Nullable< QString > mp_fgcolor
 
Nullable< qint64 > mp_first
 
Nullable< QString > mp_geo
 
Nullable< QString > mp_id
 

Detailed Description

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

Constructor & Destructor Documentation

MOSeatPlanRow::MOSeatPlanRow ( )
inline

default constructor: constructs an invalid instance of MOSeatPlanRow

Referenced by fromString(), and fromXml().

MOSeatPlanRow::MOSeatPlanRow ( const MOSeatPlanRow o)

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

References mp_bgcolor, mp_capacity, mp_fgcolor, mp_first, mp_geo, and mp_id.

MOSeatPlanRow::MOSeatPlanRow ( const QDomElement &  root)
explicit

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

References setbgcolor(), setcapacity(), setfgcolor(), setfirst(), setgeo(), and setid().

virtual MOSeatPlanRow::~MOSeatPlanRow ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

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

GUI: background color for seats.

virtual Nullable<qint64> MOSeatPlanRow::capacity ( ) const
inlinevirtual

amount of seats in this (part of the) row

virtual Nullable<QString> MOSeatPlanRow::fgcolor ( ) const
inlinevirtual

GUI: foreground color, the one the seat number is rendered in.

virtual Nullable<qint64> MOSeatPlanRow::first ( ) const
inlinevirtual

number of the first seat in this row

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

create MOSeatPlanRow from XML formatted string (inverse of toString)

References MOSeatPlanRow().

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

create MOSeatPlanRow from XML (inverse of toXml)

References MOSeatPlanRow().

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

GUI: geometry information for the row.

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

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

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

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

References mp_bgcolor, mp_capacity, mp_fgcolor, mp_first, mp_geo, and mp_id.

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

GUI: background color for seats.

Referenced by MOSeatPlanRow().

virtual void MOSeatPlanRow::setcapacity ( Nullable< qint64 >  s)
inlinevirtual

amount of seats in this (part of the) row

Referenced by MOSeatPlanRow().

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

GUI: foreground color, the one the seat number is rendered in.

Referenced by MOSeatPlanRow().

virtual void MOSeatPlanRow::setfirst ( Nullable< qint64 >  s)
inlinevirtual

number of the first seat in this row

Referenced by MOSeatPlanRow().

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

GUI: geometry information for the row.

Referenced by MOSeatPlanRow().

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

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

Referenced by MOSeatPlanRow().

QString MOSeatPlanRow::toString ( )

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

References toXml().

QDomElement MOSeatPlanRow::toXml ( QDomDocument &  doc,
QString  name = "SeatPlanRow" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_bgcolor, mp_capacity, mp_fgcolor, mp_first, mp_geo, and mp_id.

Member Data Documentation

Nullable<QString> MOSeatPlanRow::mp_bgcolor
protected

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

Nullable<qint64> MOSeatPlanRow::mp_capacity
protected

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

Nullable<QString> MOSeatPlanRow::mp_fgcolor
protected

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

Nullable<qint64> MOSeatPlanRow::mp_first
protected

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

Nullable<QString> MOSeatPlanRow::mp_geo
protected

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

Nullable<QString> MOSeatPlanRow::mp_id
protected

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


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