MagicSmoke  $VERSION$
MOFlag Class Reference

Transport class for flags and their descriptions. They are actually stored in the config table. More...

#include <srcMOFlag.h>

Inheritance diagram for MOFlag:

Public Member Functions

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

Protected Attributes

Nullable< QString > mp_description
 
Nullable< QString > mp_flag
 

Detailed Description

Transport class for flags and their descriptions. They are actually stored in the config table.

Constructor & Destructor Documentation

MOFlag::MOFlag ( )
inline

default constructor: constructs an invalid instance of MOFlag

Referenced by fromString(), and fromXml().

MOFlag::MOFlag ( const MOFlag o)

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

References mp_description, and mp_flag.

MOFlag::MOFlag ( const QDomElement &  root)
explicit

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

References setdescription(), and setflag().

virtual MOFlag::~MOFlag ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<QString> MOFlag::description ( ) const
inlinevirtual
virtual Nullable<QString> MOFlag::flag ( ) const
inlinevirtual
MOFlag MOFlag::fromString ( const QString &  txt)
static

create MOFlag from XML formatted string (inverse of toString)

References MOFlag().

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

create MOFlag from XML (inverse of toXml)

References MOFlag().

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

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

References mp_description, and mp_flag.

virtual void MOFlag::setdescription ( Nullable< QString >  s)
inlinevirtual

Referenced by MFlagTab::changeFlag(), and MOFlag().

virtual void MOFlag::setflag ( Nullable< QString >  s)
inlinevirtual
QString MOFlag::toString ( )

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

References toXml().

QDomElement MOFlag::toXml ( QDomDocument &  doc,
QString  name = "Flag" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_description, and mp_flag.

Member Data Documentation

Nullable<QString> MOFlag::mp_description
protected

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

Nullable<QString> MOFlag::mp_flag
protected

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


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