MagicSmoke  $VERSION$
MOPriceCategory Class Reference

#include <srcMOPriceCategory.h>

Inheritance diagram for MOPriceCategory:

Public Member Functions

 MOPriceCategory ()
 default constructor: constructs an invalid instance of MOPriceCategory More...
 
 MOPriceCategory (const MOPriceCategory &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOPriceCategory (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOPriceCategory ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< QString > abbreviation () const
 
virtual Nullable< bool > canuse () const
 
virtual Nullable< QString > flags () const
 
virtual Nullable< QString > formula () const
 
virtual Nullable< QString > name () const
 
MOPriceCategoryoperator= (const MOPriceCategory &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual Nullable< qint64 > pricecategoryid () const
 
virtual void setabbreviation (Nullable< QString > s)
 
virtual void setcanuse (Nullable< bool > s)
 
virtual void setflags (Nullable< QString > s)
 
virtual void setformula (Nullable< QString > s)
 
virtual void setname (Nullable< QString > s)
 
virtual void setpricecategoryid (Nullable< qint64 > s)
 
virtual void settags (Nullable< QString > s)
 
virtual Nullable< QString > tags () const
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="PriceCategory")
 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 MOPriceCategory fromString (const QString &)
 create MOPriceCategory from XML formatted string (inverse of toString) More...
 
static MOPriceCategory fromXml (const QDomElement &)
 create MOPriceCategory from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< QString > mp_abbreviation
 
Nullable< bool > mp_canuse
 
Nullable< QString > mp_flags
 
Nullable< QString > mp_formula
 
Nullable< QString > mp_name
 
Nullable< qint64 > mp_pricecategoryid
 
Nullable< QString > mp_tags
 

Constructor & Destructor Documentation

MOPriceCategory::MOPriceCategory ( )
inline

default constructor: constructs an invalid instance of MOPriceCategory

Referenced by fromString(), and fromXml().

MOPriceCategory::MOPriceCategory ( const MOPriceCategory o)

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

References mp_abbreviation, mp_canuse, mp_flags, mp_formula, mp_name, mp_pricecategoryid, and mp_tags.

MOPriceCategory::MOPriceCategory ( const QDomElement &  root)
explicit

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

References setabbreviation(), setcanuse(), setflags(), setformula(), setname(), setpricecategoryid(), and settags().

virtual MOPriceCategory::~MOPriceCategory ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<QString> MOPriceCategory::abbreviation ( ) const
inlinevirtual
virtual Nullable<bool> MOPriceCategory::canuse ( ) const
inlinevirtual
virtual Nullable<QString> MOPriceCategory::flags ( ) const
inlinevirtual
virtual Nullable<QString> MOPriceCategory::formula ( ) const
inlinevirtual
MOPriceCategory MOPriceCategory::fromString ( const QString &  txt)
static

create MOPriceCategory from XML formatted string (inverse of toString)

References MOPriceCategory().

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

create MOPriceCategory from XML (inverse of toXml)

References MOPriceCategory().

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

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

References mp_abbreviation, mp_canuse, mp_flags, mp_formula, mp_name, mp_pricecategoryid, and mp_tags.

virtual Nullable<qint64> MOPriceCategory::pricecategoryid ( ) const
inlinevirtual
virtual void MOPriceCategory::setabbreviation ( Nullable< QString >  s)
inlinevirtual
virtual void MOPriceCategory::setcanuse ( Nullable< bool >  s)
inlinevirtual

Referenced by MOPriceCategory().

virtual void MOPriceCategory::setflags ( Nullable< QString >  s)
inlinevirtual
virtual void MOPriceCategory::setformula ( Nullable< QString >  s)
inlinevirtual
virtual void MOPriceCategory::setname ( Nullable< QString >  s)
inlinevirtual
virtual void MOPriceCategory::setpricecategoryid ( Nullable< qint64 >  s)
inlinevirtual

Referenced by MOPriceCategory().

virtual void MOPriceCategory::settags ( Nullable< QString >  s)
inlinevirtual

Referenced by MOPriceCategory().

virtual Nullable<QString> MOPriceCategory::tags ( ) const
inlinevirtual
QString MOPriceCategory::toString ( )

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

References toXml().

QDomElement MOPriceCategory::toXml ( QDomDocument &  doc,
QString  name = "PriceCategory" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_abbreviation, mp_canuse, mp_flags, mp_formula, mp_name, mp_pricecategoryid, and mp_tags.

Member Data Documentation

Nullable<QString> MOPriceCategory::mp_abbreviation
protected

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

Nullable<bool> MOPriceCategory::mp_canuse
protected

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

Nullable<QString> MOPriceCategory::mp_flags
protected

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

Nullable<QString> MOPriceCategory::mp_formula
protected

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

Nullable<QString> MOPriceCategory::mp_name
protected

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

Nullable<qint64> MOPriceCategory::mp_pricecategoryid
protected

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

Nullable<QString> MOPriceCategory::mp_tags
protected

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


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