#include <srcMOCountry.h>
|
| 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 |
|
MOCountry & | operator= (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...
|
|
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
MOCountry MOCountry::fromString |
( |
const QString & |
txt | ) |
|
|
static |
MOCountry MOCountry::fromXml |
( |
const QDomElement & |
root | ) |
|
|
static |
virtual Nullable<QString> MOCountry::id |
( |
| ) |
const |
|
inlinevirtual |
virtual Nullable<QString> MOCountry::name |
( |
| ) |
const |
|
inlinevirtual |
copy assignment: creates a (deep) copy of the object
References mp_id, and mp_name.
virtual void MOCountry::setid |
( |
Nullable< QString > |
s | ) |
|
|
inlinevirtual |
virtual void MOCountry::setname |
( |
Nullable< QString > |
s | ) |
|
|
inlinevirtual |
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
-
doc | the DOM document node for which to generate the element |
name | the 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.
Nullable<QString> MOCountry::mp_id |
|
protected |
Nullable<QString> MOCountry::mp_name |
|
protected |
The documentation for this class was generated from the following files: