3#include <score/serialization/JSONVisitor.hpp>
28 if constexpr(is_custom_serialized<T>::value)
37 if constexpr(is_custom_serialized<T>::value)
43template <
typename TheClass>
46 if(vis.identifier == DataStream::type())
51 else if(vis.identifier == JSONObject::type())
60template <
typename TheClass>
63 switch(vis.identifier)
65 case DataStream::type(): {
69 case JSONObject::type(): {
80template <
typename TheClass>
85 switch(vis.identifier)
87 case DataStream::type(): {
91 case JSONObject::type(): {
101template <
typename Functor>
104 switch(vis.identifier)
106 case DataStream::type(): {
110 case JSONObject::type(): {
128template <
typename Type,
typename Object>
131 return Type::Serializer::marshall(obj);
134template <
typename Object>
135auto unmarshall(
const rapidjson::Value& obj)
143template <
typename Object>
144auto unmarshall(
const QByteArray& arr)
146 return DataStreamWriter::unmarshall<Object>(arr);
Definition DataStreamVisitor.hpp:27
Definition DataStreamVisitor.hpp:202
Definition JSONVisitor.hpp:52
Definition JSONVisitor.hpp:423
Base toolkit upon which the software is built.
Definition Application.cpp:90
auto marshall(const Object &obj)
marshall Serializes a single object
Definition VisitorCommon.hpp:129
Definition VisitorInterface.hpp:13
The VisitorVariant struct.
Definition VisitorInterface.hpp:26