MagicSmoke  $VERSION$
MOSeatPlanVGroupAbstract Class Reference

This is a helper for parsing seat plans: it defines a virtual group of categories. More...

#include <srcMOSeatPlanVGroupAbstract.h>

Inheritance diagram for MOSeatPlanVGroupAbstract:
MOSeatPlanVGroup

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...
 
MOSeatPlanVGroupAbstractoperator= (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
 

Detailed Description

This is a helper for parsing seat plans: it defines a virtual group of categories.

Constructor & Destructor Documentation

MOSeatPlanVGroupAbstract::MOSeatPlanVGroupAbstract ( )
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.

MOSeatPlanVGroupAbstract::MOSeatPlanVGroupAbstract ( const QDomElement &  root)
explicit

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

References setcapacity(), setname(), and setprice().

virtual MOSeatPlanVGroupAbstract::~MOSeatPlanVGroupAbstract ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

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

amount of seats in this (part of the) group

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

create MOSeatPlanVGroupAbstract from XML formatted string (inverse of toString)

References MOSeatPlanVGroupAbstract().

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

create MOSeatPlanVGroupAbstract from XML (inverse of toXml)

References MOSeatPlanVGroupAbstract().

virtual Nullable<QString> MOSeatPlanVGroupAbstract::name ( ) const
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.

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

definition of categories in this group

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

amount of seats in this (part of the) group

Referenced by MOSeatPlanVGroupAbstract().

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

human readable name of the group

Referenced by MOSeatPlanVGroupAbstract().

virtual void MOSeatPlanVGroupAbstract::setprice ( Nullable< QString >  s)
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.

Parameters
docthe DOM document node for which to generate the element
namethe 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.

Member Data Documentation

Nullable<QString> MOSeatPlanVGroupAbstract::mp_capacity
protected
Nullable<QString> MOSeatPlanVGroupAbstract::mp_name
protected
Nullable<QString> MOSeatPlanVGroupAbstract::mp_price
protected

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