2#include <State/Value.hpp>
15To value(
const ossia::value& val)
17 static_assert(
sizeof(To) == -1,
"Type not supported.");
21SCORE_LIB_STATE_EXPORT QVariant value(
const ossia::value& val);
23SCORE_LIB_STATE_EXPORT
int value(
const ossia::value& val);
25SCORE_LIB_STATE_EXPORT
float value(
const ossia::value& val);
27SCORE_LIB_STATE_EXPORT
bool value(
const ossia::value& val);
29SCORE_LIB_STATE_EXPORT
double value(
const ossia::value& val);
31SCORE_LIB_STATE_EXPORT QString value(
const ossia::value& val);
33SCORE_LIB_STATE_EXPORT QChar value(
const ossia::value& val);
35SCORE_LIB_STATE_EXPORT std::string value(
const ossia::value& val);
37SCORE_LIB_STATE_EXPORT
char value(
const ossia::value& val);
39SCORE_LIB_STATE_EXPORT vec2f value(
const ossia::value& val);
41SCORE_LIB_STATE_EXPORT vec3f value(
const ossia::value& val);
43SCORE_LIB_STATE_EXPORT vec4f value(
const ossia::value& val);
45SCORE_LIB_STATE_EXPORT list_t value(
const ossia::value& val);
47SCORE_LIB_STATE_EXPORT ossia::value_map_type value(
const ossia::value& val);
49SCORE_LIB_STATE_EXPORT
bool convert(
const ossia::value& orig, ossia::value& toConvert);
54SCORE_LIB_STATE_EXPORT
bool isBinary(
const QByteArray& bytes)
noexcept;
58SCORE_LIB_STATE_EXPORT QString binarySummary(
const QByteArray& bytes);
67SCORE_LIB_STATE_EXPORT
SingleLine splitSingleLine(
const QString& text);
71SCORE_LIB_STATE_EXPORT QString toSingleLine(
const QString& text);
74SCORE_LIB_STATE_EXPORT
bool isMultiLine(
const QString& text)
noexcept;
80SCORE_LIB_STATE_EXPORT std::optional<ossia::value> parseMap(
const QString& text);
90SCORE_LIB_STATE_EXPORT QString stringCellText(
const QByteArray& bytes);
91SCORE_LIB_STATE_EXPORT QString stringCellToolTip(
const QByteArray& bytes);
96SCORE_LIB_STATE_EXPORT QString escapeStringLiteral(
const QString& s);
100SCORE_LIB_STATE_EXPORT QString toPrettyString(
const ossia::value& val);
105SCORE_LIB_STATE_EXPORT QString toPrettyString(
float f);
109SCORE_LIB_STATE_EXPORT QString toDisplayString(
const ossia::value& val);
115SCORE_LIB_STATE_EXPORT QString
116textualType(
const ossia::value& val);
117SCORE_LIB_STATE_EXPORT ossia::value fromQVariant(
const QVariant& val);
118SCORE_LIB_STATE_EXPORT QString
119prettyType(
const ossia::value& val);
120SCORE_LIB_STATE_EXPORT
121QString prettyType(ossia::val_type);
122SCORE_LIB_STATE_EXPORT
const std::array<const QString, 11>&
123ValuePrettyTypesArray();
124SCORE_LIB_STATE_EXPORT
const QStringList&
125ValuePrettyTypesList();
126SCORE_LIB_STATE_EXPORT
const std::array<std::pair<QString, ossia::val_type>, 10>&
127ValuePrettyTypesMap();
Utilities for OSSIA data structures.
Definition DeviceInterface.hpp:35
Definition ValueConversion.hpp:63