3#include <score/serialization/JSONVisitor.hpp>
4#include <score/tools/Metadata.hpp>
6#include <ossia/detail/for_each.hpp>
7#include <ossia/detail/nullable_variant.hpp>
53 template <
typename TheClass>
58template <
typename TheClass>
65 if(
auto res = var.template target<TheClass>())
87 template <
typename TheClass>
92template <
typename TheClass>
101 var = std::move(data);
104template <
typename... Args>
107 using var_t = ossia::nullable_variant<Args...>;
110 s.stream() << (quint64)var.which().index();
126 if(which != (quint64)var.npos.index())
163 template <
typename TheClass>
168template <
typename TheClass>
174 if(
auto res = var.template target<TheClass>())
193 template <
typename TheClass>
198template <
typename TheClass>
209 var = std::move(obj);
214template <
typename... Args>
217 using var_t = ossia::nullable_variant<Args...>;
220 s.stream.StartObject();
225 s.stream.EndObject();
230 if(s.base.MemberCount() == 0)
Definition VisitorInterface.hpp:53
Definition DataStreamVisitor.hpp:27
void insertDelimiter()
insertDelimiter
Definition DataStreamVisitor.hpp:156
Definition DataStreamVisitor.hpp:202
Definition VisitorInterface.hpp:61
Definition JSONVisitor.hpp:52
Definition JSONVisitor.hpp:423
Definition JSONVisitor.hpp:372
Definition VisitorInterface.hpp:13
Definition VariantSerialization.hpp:74
Definition VariantSerialization.hpp:41
Definition VariantSerialization.hpp:183
Definition VariantSerialization.hpp:152