swift
Friends | List of all members
swift::misc::mixin::JsonOperators< Derived > Class Template Reference

CRTP class template which will generate marshalling operators for a derived class with its own marshalling implementation. More...

Inheritance diagram for swift::misc::mixin::JsonOperators< Derived >:
[legend]

Friends

const QJsonObject & operator>> (const QJsonObject &json, Derived &obj)
 operator >> for JSON
 
const QJsonValue & operator>> (const QJsonValue &json, Derived &obj)
 operator >> for JSON
 
QJsonValueRef operator>> (QJsonValueRef json, Derived &obj)
 operator >> for JSON
 
QJsonArray & operator<< (QJsonArray &json, const Derived &obj)
 operator << for JSON
 
QJsonObject & operator<< (QJsonObject &json, const std::pair< QString, const Derived & > &value)
 operator << for JSON
 
QJsonObject & operator<< (QJsonObject &json, const std::pair< CExplicitLatin1String, const Derived & > &value)
 operator << for JSON
 

Detailed Description

template<class Derived>
class swift::misc::mixin::JsonOperators< Derived >

CRTP class template which will generate marshalling operators for a derived class with its own marshalling implementation.

Template Parameters
Mustimplement public methods QJsonObject toJson() const and void convertFromJson(const QJsonObject &json).

Definition at line 36 of file mixinjson.h.


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