MagicSmoke  $VERSION$
MOCustomerInfoAbstract Class Reference

This class encapsulates the most basic information about a customer. More...

#include <srcMOCustomerInfoAbstract.h>

Inheritance diagram for MOCustomerInfoAbstract:
MOCustomerInfo

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
 
MOCustomerInfoAbstractoperator= (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
 

Detailed Description

This class encapsulates the most basic information about a customer.

For more complex tasks the Customer class is used.

Constructor & Destructor Documentation

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

MOCustomerInfoAbstract::MOCustomerInfoAbstract ( const QDomElement &  root)
explicit

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

References setcustomerid(), setfirstname(), setname(), and settitle().

virtual MOCustomerInfoAbstract::~MOCustomerInfoAbstract ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<qint64> MOCustomerInfoAbstract::customerid ( ) const
inlinevirtual

Referenced by MOCustomerInfo::id().

virtual Nullable<QString> MOCustomerInfoAbstract::firstname ( ) const
inlinevirtual
MOCustomerInfoAbstract MOCustomerInfoAbstract::fromString ( const QString &  txt)
static

create MOCustomerInfoAbstract from XML formatted string (inverse of toString)

References MOCustomerInfoAbstract().

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

create MOCustomerInfoAbstract from XML (inverse of toXml)

References MOCustomerInfoAbstract().

virtual Nullable<QString> MOCustomerInfoAbstract::name ( ) const
inlinevirtual
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.

virtual void MOCustomerInfoAbstract::setcustomerid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOCustomerInfoAbstract().

virtual void MOCustomerInfoAbstract::setfirstname ( Nullable< QString >  s)
inlinevirtual

Referenced by MOCustomerInfoAbstract().

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

Referenced by MOCustomerInfoAbstract().

virtual void MOCustomerInfoAbstract::settitle ( Nullable< QString >  s)
inlinevirtual

Referenced by MOCustomerInfoAbstract().

virtual Nullable<QString> MOCustomerInfoAbstract::title ( ) const
inlinevirtual
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.

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

Member Data Documentation

Nullable<qint64> MOCustomerInfoAbstract::mp_customerid
protected
Nullable<QString> MOCustomerInfoAbstract::mp_firstname
protected
Nullable<QString> MOCustomerInfoAbstract::mp_name
protected
Nullable<QString> MOCustomerInfoAbstract::mp_title
protected

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