2 #include <State/Value.hpp>
14 template <
typename To>
15 To value(
const ossia::value& val)
17 static_assert(
sizeof(To) == -1,
"Type not supported.");
21 SCORE_LIB_STATE_EXPORT QVariant value(
const ossia::value& val);
23 SCORE_LIB_STATE_EXPORT
int value(
const ossia::value& val);
25 SCORE_LIB_STATE_EXPORT
float value(
const ossia::value& val);
27 SCORE_LIB_STATE_EXPORT
bool value(
const ossia::value& val);
29 SCORE_LIB_STATE_EXPORT
double value(
const ossia::value& val);
31 SCORE_LIB_STATE_EXPORT QString value(
const ossia::value& val);
33 SCORE_LIB_STATE_EXPORT QChar value(
const ossia::value& val);
35 SCORE_LIB_STATE_EXPORT std::string value(
const ossia::value& val);
37 SCORE_LIB_STATE_EXPORT
char value(
const ossia::value& val);
39 SCORE_LIB_STATE_EXPORT vec2f value(
const ossia::value& val);
41 SCORE_LIB_STATE_EXPORT vec3f value(
const ossia::value& val);
43 SCORE_LIB_STATE_EXPORT vec4f value(
const ossia::value& val);
45 SCORE_LIB_STATE_EXPORT list_t value(
const ossia::value& val);
47 SCORE_LIB_STATE_EXPORT ossia::value_map_type value(
const ossia::value& val);
49 SCORE_LIB_STATE_EXPORT
bool convert(
const ossia::value& orig, ossia::value& toConvert);
53 SCORE_LIB_STATE_EXPORT QString toPrettyString(
const ossia::value& val);
59 SCORE_LIB_STATE_EXPORT QString
60 textualType(
const ossia::value& val);
61 SCORE_LIB_STATE_EXPORT ossia::value fromQVariant(
const QVariant& val);
62 SCORE_LIB_STATE_EXPORT QString
63 prettyType(
const ossia::value& val);
64 SCORE_LIB_STATE_EXPORT
65 QString prettyType(ossia::val_type);
66 SCORE_LIB_STATE_EXPORT
const std::array<const QString, 11>&
67 ValuePrettyTypesArray();
68 SCORE_LIB_STATE_EXPORT
const QStringList&
69 ValuePrettyTypesList();
70 SCORE_LIB_STATE_EXPORT
const std::array<std::pair<QString, ossia::val_type>, 10>&
71 ValuePrettyTypesMap();
Utilities for OSSIA data structures.
Definition: DeviceInterface.hpp:33