2#include <State/Value.hpp>
11struct AddressAccessor;
16To value(
const ossia::value& val)
18 static_assert(
sizeof(To) == -1,
"Type not supported.");
22SCORE_LIB_STATE_EXPORT QVariant value(
const ossia::value& val);
24SCORE_LIB_STATE_EXPORT ossia::value value(
const ossia::value& val);
28SCORE_LIB_STATE_EXPORT
int value(
const ossia::value& val);
30SCORE_LIB_STATE_EXPORT
float value(
const ossia::value& val);
32SCORE_LIB_STATE_EXPORT
bool value(
const ossia::value& val);
34SCORE_LIB_STATE_EXPORT
double value(
const ossia::value& val);
36SCORE_LIB_STATE_EXPORT QString value(
const ossia::value& val);
38SCORE_LIB_STATE_EXPORT QChar value(
const ossia::value& val);
40SCORE_LIB_STATE_EXPORT std::string value(
const ossia::value& val);
42SCORE_LIB_STATE_EXPORT
char value(
const ossia::value& val);
44SCORE_LIB_STATE_EXPORT vec2f value(
const ossia::value& val);
46SCORE_LIB_STATE_EXPORT vec3f value(
const ossia::value& val);
48SCORE_LIB_STATE_EXPORT vec4f value(
const ossia::value& val);
50SCORE_LIB_STATE_EXPORT list_t value(
const ossia::value& val);
52SCORE_LIB_STATE_EXPORT ossia::value_map_type value(
const ossia::value& val);
54SCORE_LIB_STATE_EXPORT
bool convert(
const ossia::value& orig, ossia::value& toConvert);
59SCORE_LIB_STATE_EXPORT
bool isBinary(
const QByteArray& bytes)
noexcept;
63SCORE_LIB_STATE_EXPORT QString binarySummary(
const QByteArray& bytes);
72SCORE_LIB_STATE_EXPORT
SingleLine splitSingleLine(
const QString& text);
76SCORE_LIB_STATE_EXPORT QString toSingleLine(
const QString& text);
79SCORE_LIB_STATE_EXPORT
bool isMultiLine(
const QString& text)
noexcept;
85SCORE_LIB_STATE_EXPORT std::optional<ossia::value> parseMap(
const QString& text);
95SCORE_LIB_STATE_EXPORT QString stringCellText(
const QByteArray& bytes);
96SCORE_LIB_STATE_EXPORT QString stringCellToolTip(
const QByteArray& bytes);
101SCORE_LIB_STATE_EXPORT QString escapeStringLiteral(
const QString& s);
105SCORE_LIB_STATE_EXPORT QString toPrettyString(
const ossia::value& val);
110SCORE_LIB_STATE_EXPORT QString toPrettyString(
float f);
114SCORE_LIB_STATE_EXPORT QString toDisplayString(
const ossia::value& val);
120SCORE_LIB_STATE_EXPORT QString
121textualType(
const ossia::value& val);
122SCORE_LIB_STATE_EXPORT ossia::value fromQVariant(
const QVariant& val);
123SCORE_LIB_STATE_EXPORT QString
124prettyType(
const ossia::value& val);
125SCORE_LIB_STATE_EXPORT
126QString prettyType(ossia::val_type);
127SCORE_LIB_STATE_EXPORT
const std::array<const QString, 11>&
128ValuePrettyTypesArray();
129SCORE_LIB_STATE_EXPORT
const QStringList&
130ValuePrettyTypesList();
131SCORE_LIB_STATE_EXPORT
const std::array<std::pair<QString, ossia::val_type>, 10>&
132ValuePrettyTypesMap();
Utilities for OSSIA data structures.
Definition DeviceInterface.hpp:35
Definition Address.hpp:136
Definition ValueConversion.hpp:68