MagicSmoke  $VERSION$
MORole Class Reference

#include <srcMORole.h>

Inheritance diagram for MORole:

Public Member Functions

 MORole ()
 default constructor: constructs an invalid instance of MORole More...
 
 MORole (const MORole &)
 copy constructor: creates a (deep) copy of the object More...
 
 MORole (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MORole ()
 destructor: deletes this copy of the object More...
 
virtual void addrights (Nullable< QString > a)
 
virtual void clearrights ()
 
virtual Nullable< QString > description () const
 
virtual Nullable< QString > flags () const
 
virtual Nullable< QString > name () const
 
MORoleoperator= (const MORole &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual QList< QString > rights () const
 
virtual void setdescription (Nullable< QString > s)
 
virtual void setflags (Nullable< QString > s)
 
virtual void setname (Nullable< QString > s)
 
virtual void setrights (QList< QString > s)
 
QString toString ()
 Serializes the object to XML and returns the string representation of that XML. More...
 
QDomElement toXml (QDomDocument &doc, QString name="Role")
 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 MORole fromString (const QString &)
 create MORole from XML formatted string (inverse of toString) More...
 
static MORole fromXml (const QDomElement &)
 create MORole from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< QString > mp_description
 
Nullable< QString > mp_flags
 
Nullable< QString > mp_name
 
QList< QString > mp_rights
 

Constructor & Destructor Documentation

MORole::MORole ( )
inline

default constructor: constructs an invalid instance of MORole

Referenced by fromString(), and fromXml().

MORole::MORole ( const MORole o)

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

References mp_description, mp_flags, mp_name, and mp_rights.

MORole::MORole ( const QDomElement &  root)
explicit

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

References addrights(), setdescription(), setflags(), and setname().

virtual MORole::~MORole ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual void MORole::addrights ( Nullable< QString >  a)
inlinevirtual

Referenced by MORole().

virtual void MORole::clearrights ( )
inlinevirtual
virtual Nullable<QString> MORole::description ( ) const
inlinevirtual
virtual Nullable<QString> MORole::flags ( ) const
inlinevirtual
MORole MORole::fromString ( const QString &  txt)
static

create MORole from XML formatted string (inverse of toString)

References MORole().

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

create MORole from XML (inverse of toXml)

References MORole().

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

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

References mp_description, mp_flags, mp_name, and mp_rights.

virtual QList<QString> MORole::rights ( ) const
inlinevirtual
virtual void MORole::setdescription ( Nullable< QString >  s)
inlinevirtual

Referenced by MORole().

virtual void MORole::setflags ( Nullable< QString >  s)
inlinevirtual

Referenced by MORole().

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

Referenced by MORole().

virtual void MORole::setrights ( QList< QString >  s)
inlinevirtual
QString MORole::toString ( )

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

References toXml().

QDomElement MORole::toXml ( QDomDocument &  doc,
QString  name = "Role" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_description, mp_flags, mp_name, and mp_rights.

Member Data Documentation

Nullable<QString> MORole::mp_description
protected

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

Nullable<QString> MORole::mp_flags
protected

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

Nullable<QString> MORole::mp_name
protected

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

QList<QString> MORole::mp_rights
protected

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


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