MagicSmoke  $VERSION$
MOTemplate Class Reference

#include <srcMOTemplate.h>

Inheritance diagram for MOTemplate:

Public Member Functions

 MOTemplate ()
 default constructor: constructs an invalid instance of MOTemplate More...
 
 MOTemplate (const MOTemplate &)
 copy constructor: creates a (deep) copy of the object More...
 
 MOTemplate (const QDomElement &)
 special constructor: create from the XML representation, deserializing the object More...
 
virtual ~MOTemplate ()
 destructor: deletes this copy of the object More...
 
virtual Nullable< bool > canuse () const
 
virtual Nullable< QByteArray > content () const
 
virtual Nullable< QString > description () const
 
virtual Nullable< bool > dolog () const
 
virtual Nullable< QString > filename () const
 
virtual Nullable< QString > flags () const
 
virtual Nullable< QString > hash () const
 
MOTemplateoperator= (const MOTemplate &)
 copy assignment: creates a (deep) copy of the object More...
 
virtual void setcanuse (Nullable< bool > s)
 
virtual void setcontent (Nullable< QByteArray > s)
 
virtual void setdescription (Nullable< QString > s)
 
virtual void setdolog (Nullable< bool > s)
 
virtual void setfilename (Nullable< QString > s)
 
virtual void setflags (Nullable< QString > s)
 
virtual void sethash (Nullable< QString > 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="Template")
 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 MOTemplate fromString (const QString &)
 create MOTemplate from XML formatted string (inverse of toString) More...
 
static MOTemplate fromXml (const QDomElement &)
 create MOTemplate from XML (inverse of toXml) More...
 

Protected Attributes

Nullable< bool > mp_canuse
 
Nullable< QByteArray > mp_content
 
Nullable< QString > mp_description
 
Nullable< bool > mp_dolog
 
Nullable< QString > mp_filename
 
Nullable< QString > mp_flags
 
Nullable< QString > mp_hash
 
Nullable< QString > mp_tags
 

Constructor & Destructor Documentation

MOTemplate::MOTemplate ( )
inline

default constructor: constructs an invalid instance of MOTemplate

Referenced by fromString(), and fromXml().

MOTemplate::MOTemplate ( const MOTemplate o)

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

References mp_canuse, mp_content, mp_description, mp_dolog, mp_filename, mp_flags, mp_hash, and mp_tags.

MOTemplate::MOTemplate ( const QDomElement &  root)
explicit

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

References setcanuse(), setcontent(), setdescription(), setdolog(), setfilename(), setflags(), sethash(), and settags().

virtual MOTemplate::~MOTemplate ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<bool> MOTemplate::canuse ( ) const
inlinevirtual
virtual Nullable<QByteArray> MOTemplate::content ( ) const
inlinevirtual
virtual Nullable<QString> MOTemplate::description ( ) const
inlinevirtual
virtual Nullable<bool> MOTemplate::dolog ( ) const
inlinevirtual
virtual Nullable<QString> MOTemplate::filename ( ) const
inlinevirtual
virtual Nullable<QString> MOTemplate::flags ( ) const
inlinevirtual
MOTemplate MOTemplate::fromString ( const QString &  txt)
static

create MOTemplate from XML formatted string (inverse of toString)

References MOTemplate().

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

create MOTemplate from XML (inverse of toXml)

References MOTemplate().

virtual Nullable<QString> MOTemplate::hash ( ) const
inlinevirtual
MOTemplate & MOTemplate::operator= ( const MOTemplate o)

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

References mp_canuse, mp_content, mp_description, mp_dolog, mp_filename, mp_flags, mp_hash, and mp_tags.

virtual void MOTemplate::setcanuse ( Nullable< bool >  s)
inlinevirtual

Referenced by MOTemplate().

virtual void MOTemplate::setcontent ( Nullable< QByteArray >  s)
inlinevirtual

Referenced by MOTemplate().

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

Referenced by MOTemplate().

virtual void MOTemplate::setdolog ( Nullable< bool >  s)
inlinevirtual

Referenced by MOTemplate().

virtual void MOTemplate::setfilename ( Nullable< QString >  s)
inlinevirtual

Referenced by MOTemplate().

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

Referenced by MOTemplate().

virtual void MOTemplate::sethash ( Nullable< QString >  s)
inlinevirtual

Referenced by MOTemplate().

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

Referenced by MOTemplate().

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

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

References toXml().

QDomElement MOTemplate::toXml ( QDomDocument &  doc,
QString  name = "Template" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_canuse, mp_content, mp_description, mp_dolog, mp_filename, mp_flags, mp_hash, and mp_tags.

Member Data Documentation

Nullable<bool> MOTemplate::mp_canuse
protected

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

Nullable<QByteArray> MOTemplate::mp_content
protected

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

Nullable<QString> MOTemplate::mp_description
protected

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

Nullable<bool> MOTemplate::mp_dolog
protected

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

Nullable<QString> MOTemplate::mp_filename
protected

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

Nullable<QString> MOTemplate::mp_flags
protected

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

Nullable<QString> MOTemplate::mp_hash
protected

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

Nullable<QString> MOTemplate::mp_tags
protected

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


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