MagicSmoke
$VERSION$
|
#include <srcMOKeyValuePairAbstract.h>
Public Member Functions | |
MOKeyValuePairAbstract () | |
default constructor: constructs an invalid instance of MOKeyValuePairAbstract More... | |
MOKeyValuePairAbstract (const MOKeyValuePairAbstract &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOKeyValuePairAbstract (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOKeyValuePairAbstract () |
destructor: deletes this copy of the object More... | |
virtual Nullable< bool > | isnull () const |
virtual Nullable< QString > | key () const |
MOKeyValuePairAbstract & | operator= (const MOKeyValuePairAbstract &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual void | setisnull (Nullable< bool > s) |
virtual void | setkey (Nullable< QString > s) |
virtual void | setvalue (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="KeyValuePair") |
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... | |
virtual Nullable< QString > | value () const |
Static Public Member Functions | |
static MOKeyValuePairAbstract | fromString (const QString &) |
create MOKeyValuePairAbstract from XML formatted string (inverse of toString) More... | |
static MOKeyValuePairAbstract | fromXml (const QDomElement &) |
create MOKeyValuePairAbstract from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< bool > | mp_isnull |
Nullable< QString > | mp_key |
Nullable< QString > | mp_value |
|
inline |
default constructor: constructs an invalid instance of MOKeyValuePairAbstract
Referenced by fromString(), and fromXml().
MOKeyValuePairAbstract::MOKeyValuePairAbstract | ( | const MOKeyValuePairAbstract & | o | ) |
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setisnull(), setkey(), and setvalue().
|
inlinevirtual |
destructor: deletes this copy of the object
|
static |
create MOKeyValuePairAbstract from XML formatted string (inverse of toString)
References MOKeyValuePairAbstract().
|
static |
create MOKeyValuePairAbstract from XML (inverse of toXml)
References MOKeyValuePairAbstract().
|
inlinevirtual |
|
inlinevirtual |
Referenced by MOKeyValuePair::operator QPair< QString, QString >().
MOKeyValuePairAbstract & MOKeyValuePairAbstract::operator= | ( | const MOKeyValuePairAbstract & | o | ) |
|
inlinevirtual |
Referenced by MOKeyValuePair::MOKeyValuePair(), and MOKeyValuePairAbstract().
|
inlinevirtual |
Referenced by MOKeyValuePair::MOKeyValuePair(), and MOKeyValuePairAbstract().
|
inlinevirtual |
Referenced by MOKeyValuePair::MOKeyValuePair(), and MOKeyValuePairAbstract().
QString MOKeyValuePairAbstract::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOKeyValuePairAbstract::toXml | ( | QDomDocument & | doc, |
QString | name = "KeyValuePair" |
||
) |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself.
doc | the DOM document node for which to generate the element |
name | the name to give the generated element, per default "MOKeyValuePairAbstract" is used |
Referenced by toString().
void MOKeyValuePairAbstract::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
|
inlinevirtual |
Referenced by MOKeyValuePair::operator QPair< QString, QString >().
|
protected |
Referenced by MOKeyValuePairAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOKeyValuePairAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOKeyValuePairAbstract(), operator=(), and toXml().