MagicSmoke  $VERSION$
MORoom Class Reference

#include <srcMORoom.h>

Inheritance diagram for MORoom:

Public Member Functions

 MORoom ()
 default constructor: constructs an invalid instance of MORoom More...
 
 MORoom (const MORoom &)
 copy constructor: creates a (deep) copy of the object More...
 
 MORoom (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MORoom ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< qint64 > capacity () const
 
virtual Nullable< QString > description () const
 
virtual Nullable< QString > id () const
 
MORoomoperator= (const MORoom &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setcapacity (Nullable< qint64 > s)
 
virtual void setdescription (Nullable< QString > s)
 
virtual void setid (Nullable< QString > s)
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="Room")
 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 MORoom fromString (const QString &)
 create MORoom from XML formatted string (inverse of toString) More...
 
static MORoom fromXml (const QDomElement &)
 create MORoom from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< qint64 > mp_capacity
 
Nullable< QString > mp_description
 
Nullable< QString > mp_id
 

Constructor & Destructor Documentation

MORoom::MORoom ( )
inline

default constructor: constructs an invalid instance of MORoom

Referenced by fromString(), and fromXml().

MORoom::MORoom ( const MORoom o)

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

References mp_capacity, mp_description, and mp_id.

MORoom::MORoom ( const QDomElement &  root)
explicit

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

References setcapacity(), setdescription(), and setid().

virtual MORoom::~MORoom ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<qint64> MORoom::capacity ( ) const
inlinevirtual
virtual Nullable<QString> MORoom::description ( ) const
inlinevirtual
MORoom MORoom::fromString ( const QString &  txt)
static

create MORoom from XML formatted string (inverse of toString)

References MORoom().

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

create MORoom from XML (inverse of toXml)

References MORoom().

virtual Nullable<QString> MORoom::id ( ) const
inlinevirtual
MORoom & MORoom::operator= ( const MORoom o)

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

References mp_capacity, mp_description, and mp_id.

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

Referenced by MORoom().

virtual void MORoom::setdescription ( Nullable< QString >  s)
inlinevirtual

Referenced by MORoom().

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

Referenced by MORoom().

QString MORoom::toString ( )

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

References toXml().

QDomElement MORoom::toXml ( QDomDocument &  doc,
QString  name = "Room" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_capacity, mp_description, and mp_id.

Member Data Documentation

Nullable<qint64> MORoom::mp_capacity
protected

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

Nullable<QString> MORoom::mp_description
protected

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

Nullable<QString> MORoom::mp_id
protected

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


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