MagicSmoke  $VERSION$
MOKeyValuePair Class Reference

this class represents a key value pair or part of a map/dictionary. More...

#include <keyvalue.h>

Inheritance diagram for MOKeyValuePair:
MOKeyValuePairAbstract

Public Member Functions

 MOKeyValuePair (QString k, QString v)
 
 MOKeyValuePair (QString k, std::nullptr_t)
 
 operator QPair< QString, QString > ()
 
- Public Member Functions inherited from MOKeyValuePairAbstract
 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
 
MOKeyValuePairAbstractoperator= (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
 

Additional Inherited Members

- Static Public Member Functions inherited from MOKeyValuePairAbstract
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 inherited from MOKeyValuePairAbstract
Nullable< bool > mp_isnull
 
Nullable< QString > mp_key
 
Nullable< QString > mp_value
 

Detailed Description

this class represents a key value pair or part of a map/dictionary.

Constructor & Destructor Documentation

MOKeyValuePair::MOKeyValuePair ( QString  k,
QString  v 
)
inline
MOKeyValuePair::MOKeyValuePair ( QString  k,
std::nullptr_t   
)
inline

Member Function Documentation

MOKeyValuePair::operator QPair< QString, QString > ( )
inline

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