MagicSmoke  $VERSION$
MOTemplateInfo Class Reference

#include <srcMOTemplateInfo.h>

Inheritance diagram for MOTemplateInfo:

Public Member Functions

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

Protected Attributes

Nullable< QString > mp_description
 
Nullable< QString > mp_filename
 
Nullable< QString > mp_flags
 
Nullable< QString > mp_hash
 

Constructor & Destructor Documentation

MOTemplateInfo::MOTemplateInfo ( )
inline

default constructor: constructs an invalid instance of MOTemplateInfo

Referenced by fromString(), and fromXml().

MOTemplateInfo::MOTemplateInfo ( const MOTemplateInfo o)

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

References mp_description, mp_filename, mp_flags, and mp_hash.

MOTemplateInfo::MOTemplateInfo ( const QDomElement &  root)
explicit

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

References setdescription(), setfilename(), setflags(), and sethash().

virtual MOTemplateInfo::~MOTemplateInfo ( )
inlinevirtual

destructor: deletes this copy of the object

Member Function Documentation

virtual Nullable<QString> MOTemplateInfo::description ( ) const
inlinevirtual
virtual Nullable<QString> MOTemplateInfo::filename ( ) const
inlinevirtual
virtual Nullable<QString> MOTemplateInfo::flags ( ) const
inlinevirtual
MOTemplateInfo MOTemplateInfo::fromString ( const QString &  txt)
static

create MOTemplateInfo from XML formatted string (inverse of toString)

References MOTemplateInfo().

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

create MOTemplateInfo from XML (inverse of toXml)

References MOTemplateInfo().

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

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

References mp_description, mp_filename, mp_flags, and mp_hash.

virtual void MOTemplateInfo::setdescription ( Nullable< QString >  s)
inlinevirtual
virtual void MOTemplateInfo::setfilename ( Nullable< QString >  s)
inlinevirtual
virtual void MOTemplateInfo::setflags ( Nullable< QString >  s)
inlinevirtual
virtual void MOTemplateInfo::sethash ( Nullable< QString >  s)
inlinevirtual
QString MOTemplateInfo::toString ( )

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

References toXml().

QDomElement MOTemplateInfo::toXml ( QDomDocument &  doc,
QString  name = "TemplateInfo" 
)

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

Referenced by toString().

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

Serializes the object into the given element.

References mp_description, mp_filename, mp_flags, and mp_hash.

Member Data Documentation

Nullable<QString> MOTemplateInfo::mp_description
protected

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

Nullable<QString> MOTemplateInfo::mp_filename
protected

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

Nullable<QString> MOTemplateInfo::mp_flags
protected

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

Nullable<QString> MOTemplateInfo::mp_hash
protected

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


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