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>
58 template <
typename TheClass>
65 if(
auto res = ossia::get_if<TheClass>(&var))
88 template <
typename TheClass>
93 template <
typename TheClass>
102 var = std::move(data);
105 template <
typename... Args>
108 using var_t = ossia::variant<Args...>;
111 s.stream() << (quint64)var.index();
123 ossia::for_each_type<Args...>(
145 template <
typename T>
158 template <
typename TheClass>
162 template <
typename T>
163 template <
typename TheClass>
169 if(
auto res = ossia::get_if<TheClass>(&var))
176 template <
typename T>
188 template <
typename TheClass>
192 template <
typename T>
193 template <
typename TheClass>
204 var = std::move(obj);
209 template <
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
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