3#include <score/serialization/JSONVisitor.hpp>
4#include <score/tools/Metadata.hpp>
6#include <ossia/detail/for_each.hpp>
7#include <ossia/detail/variant.hpp>
53 template <
typename TheClass>
58template <
typename TheClass>
65 if(
auto res = ossia::get_if<TheClass>(&var))
88 template <
typename TheClass>
93template <
typename TheClass>
102 var = std::move(data);
105template <
typename... Args>
108 using var_t = ossia::variant<Args...>;
111 s.stream() << (quint64)var.index();
123 ossia::for_each_type<Args...>(
158 template <
typename TheClass>
163template <
typename TheClass>
169 if(
auto res = ossia::get_if<TheClass>(&var))
188 template <
typename TheClass>
193template <
typename TheClass>
204 var = std::move(obj);
209template <
typename... Args>
212 using var_t = ossia::variant<Args...>;
215 s.stream.StartObject();
217 s.stream.EndObject();
222 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 BoostVariant2Serialization.hpp:74
Definition BoostVariant2Serialization.hpp:41
Definition BoostVariant2Serialization.hpp:178
Definition BoostVariant2Serialization.hpp:147
Definition VisitorInterface.hpp:13