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>
58 template <
typename TheClass>
65 if(
auto res = var.template target<TheClass>())
87 template <
typename TheClass>
92 template <
typename TheClass>
101 var = std::move(data);
104 template <
typename... Args>
107 using var_t = ossia::nullable_variant<Args...>;
110 s.stream() << (quint64)var.which().index();
126 if(which != (quint64)var.npos.index())
150 template <
typename T>
163 template <
typename TheClass>
167 template <
typename T>
168 template <
typename TheClass>
174 if(
auto res = var.template target<TheClass>())
181 template <
typename T>
193 template <
typename TheClass>
197 template <
typename T>
198 template <
typename TheClass>
209 var = std::move(obj);
214 template <
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
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