MagicSmoke  $VERSION$
MOHost Class Reference

#include <srcMOHost.h>

Inheritance diagram for MOHost:

Public Member Functions

 MOHost ()
 default constructor: constructs an invalid instance of MOHost More...
 
 MOHost (const MOHost &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOHost (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOHost ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< QString > key () const
 
virtual Nullable< QString > name () const
 
MOHostoperator= (const MOHost &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setkey (Nullable< QString > s)
 
virtual void setname (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="Host")
 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 MOHost fromString (const QString &)
 create MOHost from XML formatted string (inverse of toString) More...
 
static MOHost fromXml (const QDomElement &)
 create MOHost from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< QString > mp_key
 
Nullable< QString > mp_name
 

Constructor & Destructor Documentation

MOHost::MOHost ( )
inline

default constructor: constructs an invalid instance of MOHost

Referenced by fromString(), and fromXml().

MOHost::MOHost ( const MOHost o)

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

References mp_key, and mp_name.

MOHost::MOHost ( const QDomElement &  root)
explicit

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

References setkey(), and setname().

virtual MOHost::~MOHost ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

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

create MOHost from XML formatted string (inverse of toString)

References MOHost().

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

create MOHost from XML (inverse of toXml)

References MOHost().

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

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

References mp_key, and mp_name.

virtual void MOHost::setkey ( Nullable< QString >  s)
inlinevirtual

Referenced by MOHost().

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

Referenced by MOHost().

QString MOHost::toString ( )

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

References toXml().

QDomElement MOHost::toXml ( QDomDocument &  doc,
QString  name = "Host" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_key, and mp_name.

Member Data Documentation

Nullable<QString> MOHost::mp_key
protected

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

Nullable<QString> MOHost::mp_name
protected

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


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