13 #ifndef MAGICSMOKE_KEYVALUE_H
14 #define MAGICSMOKE_KEYVALUE_H
16 #include "MOKeyValuePairAbstract"
21 #ifndef MSIFACE_EXPORT
22 #define MSIFACE_EXPORT Q_DECL_IMPORT
35 inline operator QPair<QString,QString> ()
37 return QPair<QString,QString>(
key(),
value());
52 QMap<QString,QString>&
mergeToMap(QMap<QString,QString>&map,
const QList<MOKeyValuePair>pl)
58 map.insert(p.key(),p.value());
63 QMap<QString,QString>
toMap(
const QList<MOKeyValuePair>pl)
65 QMap<QString,QString>map;
QMap< QString, QString > toMap(const QList< MOKeyValuePair >pl)
Definition: keyvalue.h:63
virtual Nullable< QString > value() const
Definition: srcMOKeyValuePairAbstract.h:31
virtual void setkey(Nullable< QString > s)
Definition: srcMOKeyValuePairAbstract.h:35
virtual void setvalue(Nullable< QString > s)
Definition: srcMOKeyValuePairAbstract.h:37
this class represents a key value pair or part of a map/dictionary.
Definition: keyvalue.h:27
MOKeyValuePair(QString k, std::nullptr_t)
Definition: keyvalue.h:33
Definition: srcMOKeyValuePairAbstract.h:14
virtual void setisnull(Nullable< bool > s)
Definition: srcMOKeyValuePairAbstract.h:39
virtual Nullable< QString > key() const
Definition: srcMOKeyValuePairAbstract.h:29
Q_DECLARE_METATYPE(QDomNode)
QMap< QString, QString > & mergeToMap(QMap< QString, QString > &map, const QList< MOKeyValuePair >pl)
Definition: keyvalue.h:52
MOKeyValuePair(QString k, QString v)
Definition: keyvalue.h:32
#define MSIFACE_EXPORT
Definition: keyvalue.h:22