MagicSmoke  $VERSION$
MOCountry Class Reference

#include <srcMOCountry.h>

Inheritance diagram for MOCountry:

Public Member Functions

 MOCountry ()
 default constructor: constructs an invalid instance of MOCountry More...
 
 MOCountry (const MOCountry &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOCountry (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOCountry ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< QString > id () const
 
virtual Nullable< QString > name () const
 
MOCountryoperator= (const MOCountry &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setid (Nullable< QString > s)
 
virtual void setname (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="Country")
 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 MOCountry fromString (const QString &)
 create MOCountry from XML formatted string (inverse of toString) More...
 
static MOCountry fromXml (const QDomElement &)
 create MOCountry from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< QString > mp_id
 
Nullable< QString > mp_name
 

Constructor & Destructor Documentation

MOCountry::MOCountry ( )
inline

default constructor: constructs an invalid instance of MOCountry

Referenced by fromString(), and fromXml().

MOCountry::MOCountry ( const MOCountry o)

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

References mp_id, and mp_name.

MOCountry::MOCountry ( const QDomElement &  root)
explicit

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

References setid(), and setname().

virtual MOCountry::~MOCountry ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

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

create MOCountry from XML formatted string (inverse of toString)

References MOCountry().

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

create MOCountry from XML (inverse of toXml)

References MOCountry().

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

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

References mp_id, and mp_name.

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

Referenced by MOCountry().

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

Referenced by MOCountry().

QString MOCountry::toString ( )

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

References toXml().

QDomElement MOCountry::toXml ( QDomDocument &  doc,
QString  name = "Country" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_id, and mp_name.

Member Data Documentation

Nullable<QString> MOCountry::mp_id
protected

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

Nullable<QString> MOCountry::mp_name
protected

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


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