MagicSmoke  $VERSION$
MOCartItem Class Reference

#include <srcMOCartItem.h>

Inheritance diagram for MOCartItem:

Public Member Functions

 MOCartItem ()
 default constructor: constructs an invalid instance of MOCartItem More...
 
 MOCartItem (const MOCartItem &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOCartItem (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOCartItem ()
 destructor: deletes this copy of the object More...
 
MOCartItemoperator= (const MOCartItem &)
 copy assignment: creates a (deep) copy of the object More...
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="CartItem")
 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 MOCartItem fromString (const QString &)
 create MOCartItem from XML formatted string (inverse of toString) More...
 
static MOCartItem fromXml (const QDomElement &)
 create MOCartItem from XML (inverse of toXml) More...
 

Constructor & Destructor Documentation

MOCartItem::MOCartItem ( )
inline

default constructor: constructs an invalid instance of MOCartItem

Referenced by fromString(), and fromXml().

MOCartItem::MOCartItem ( const MOCartItem o)

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

MOCartItem::MOCartItem ( const QDomElement &  root)
explicit

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

virtual MOCartItem::~MOCartItem ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

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

create MOCartItem from XML formatted string (inverse of toString)

References MOCartItem().

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

create MOCartItem from XML (inverse of toXml)

References MOCartItem().

MOCartItem & MOCartItem::operator= ( const MOCartItem o)

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

QString MOCartItem::toString ( )

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

References toXml().

QDomElement MOCartItem::toXml ( QDomDocument &  doc,
QString  name = "CartItem" 
)

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

Referenced by toString().

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

Serializes the object into the given element.


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