MagicSmoke  $VERSION$
MOSeatPlanDefPriceAbstract Class Reference

Default price categories for a seat plan. More...

#include <srcMOSeatPlanDefPriceAbstract.h>

Inheritance diagram for MOSeatPlanDefPriceAbstract:
MOSeatPlanDefPrice

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

Detailed Description

Default price categories for a seat plan.

Constructor & Destructor Documentation

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

MOSeatPlanDefPriceAbstract::MOSeatPlanDefPriceAbstract ( const QDomElement &  root)
explicit

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

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

virtual MOSeatPlanDefPriceAbstract::~MOSeatPlanDefPriceAbstract ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

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

amount of seats in this (part of the) group

Referenced by MOSeatPlanDefPrice::isValid().

virtual Nullable<QString> MOSeatPlanDefPriceAbstract::cost ( ) const
inlinevirtual

default cost definition

Referenced by MOSeatPlanDefPrice::isValid().

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

create MOSeatPlanDefPriceAbstract from XML formatted string (inverse of toString)

References MOSeatPlanDefPriceAbstract().

MOSeatPlanDefPriceAbstract MOSeatPlanDefPriceAbstract::fromXml ( const QDomElement &  root)
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.

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

definition of categories in this group

Referenced by MOSeatPlanDefPrice::isValid().

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

amount of seats in this (part of the) group

Referenced by MOSeatPlanDefPriceAbstract().

virtual void MOSeatPlanDefPriceAbstract::setcost ( Nullable< QString >  s)
inlinevirtual

default cost definition

Referenced by MOSeatPlanDefPriceAbstract().

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

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

Member Data Documentation

Nullable<QString> MOSeatPlanDefPriceAbstract::mp_capacity
protected
Nullable<QString> MOSeatPlanDefPriceAbstract::mp_cost
protected
Nullable<QString> MOSeatPlanDefPriceAbstract::mp_price
protected

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