|
MagicSmoke
$VERSION$
|
This class encapsulates the most basic information about a customer. More...
#include <srcMOCustomerInfoAbstract.h>
Public Member Functions | |
| MOCustomerInfoAbstract () | |
| default constructor: constructs an invalid instance of MOCustomerInfoAbstract More... | |
| MOCustomerInfoAbstract (const MOCustomerInfoAbstract &) | |
| copy constructor: creates a (deep) copy of the object More... | |
| MOCustomerInfoAbstract (const QDomElement &) | |
| special constructor: create from the XML representation, deserializing the object More... | |
| virtual | ~MOCustomerInfoAbstract () |
| destructor: deletes this copy of the object More... | |
| virtual Nullable< qint64 > | customerid () const |
| virtual Nullable< QString > | firstname () const |
| virtual Nullable< QString > | name () const |
| MOCustomerInfoAbstract & | operator= (const MOCustomerInfoAbstract &) |
| copy assignment: creates a (deep) copy of the object More... | |
| virtual void | setcustomerid (Nullable< qint64 > s) |
| virtual void | setfirstname (Nullable< QString > s) |
| virtual void | setname (Nullable< QString > s) |
| virtual void | settitle (Nullable< QString > s) |
| virtual Nullable< QString > | title () const |
| QString | toString () |
| Serializes the object to XML and returns the string representation of that XML. More... | |
| QDomElement | toXml (QDomDocument &doc, QString name="CustomerInfo") |
| 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 MOCustomerInfoAbstract | fromString (const QString &) |
| create MOCustomerInfoAbstract from XML formatted string (inverse of toString) More... | |
| static MOCustomerInfoAbstract | fromXml (const QDomElement &) |
| create MOCustomerInfoAbstract from XML (inverse of toXml) More... | |
Protected Attributes | |
| Nullable< qint64 > | mp_customerid |
| Nullable< QString > | mp_firstname |
| Nullable< QString > | mp_name |
| Nullable< QString > | mp_title |
This class encapsulates the most basic information about a customer.
For more complex tasks the Customer class is used.
|
inline |
default constructor: constructs an invalid instance of MOCustomerInfoAbstract
Referenced by fromString(), and fromXml().
| MOCustomerInfoAbstract::MOCustomerInfoAbstract | ( | const MOCustomerInfoAbstract & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_customerid, mp_firstname, mp_name, and mp_title.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setcustomerid(), setfirstname(), setname(), and settitle().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
Referenced by MOCustomerInfo::id().
|
inlinevirtual |
Referenced by MOCustomerInfo::fullName().
|
static |
create MOCustomerInfoAbstract from XML formatted string (inverse of toString)
References MOCustomerInfoAbstract().
|
static |
create MOCustomerInfoAbstract from XML (inverse of toXml)
References MOCustomerInfoAbstract().
|
inlinevirtual |
Referenced by MOCustomerInfo::fullName().
| MOCustomerInfoAbstract & MOCustomerInfoAbstract::operator= | ( | const MOCustomerInfoAbstract & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_customerid, mp_firstname, mp_name, and mp_title.
|
inlinevirtual |
Referenced by MOCustomerInfoAbstract().
|
inlinevirtual |
Referenced by MOCustomerInfoAbstract().
|
inlinevirtual |
Referenced by MOCustomerInfoAbstract().
|
inlinevirtual |
Referenced by MOCustomerInfoAbstract().
|
inlinevirtual |
Referenced by MOCustomerInfo::fullName().
| QString MOCustomerInfoAbstract::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
| QDomElement MOCustomerInfoAbstract::toXml | ( | QDomDocument & | doc, |
| QString | name = "CustomerInfo" |
||
| ) |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself.
| doc | the DOM document node for which to generate the element |
| name | the name to give the generated element, per default "MOCustomerInfoAbstract" is used |
Referenced by toString().
| void MOCustomerInfoAbstract::toXml | ( | QDomDocument & | doc, |
| QDomElement & | r | ||
| ) |
Serializes the object into the given element.
References mp_customerid, mp_firstname, mp_name, and mp_title.
|
protected |
Referenced by MOCustomerInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOCustomerInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOCustomerInfoAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOCustomerInfoAbstract(), operator=(), and toXml().