2#include <score/serialization/DataStreamFwd.hpp>
3#include <score/tools/std/Optional.hpp>
5#include <ossia/detail/destination_index.hpp>
6#include <ossia/detail/optional.hpp>
11#include <score_lib_state_export.h>
17struct destination_qualifiers;
37 operator const ossia::destination_qualifiers&()
const noexcept;
38 operator ossia::destination_qualifiers&()
noexcept;
43 const ossia::destination_qualifiers& get()
const noexcept;
44 ossia::destination_qualifiers& get()
noexcept;
47 std::unique_ptr<ossia::destination_qualifiers> qualifiers;
64 Address(QString d, QStringList p)
noexcept;
74 static bool validateString(
const QString& str);
75 static bool validateFragment(
const QString& s);
78 static std::optional<Address> fromString(
const QString& str);
84 QString toString()
const;
86 QString toString_unsafe()
const;
92 QString toShortString()
const;
97 bool isSet()
const noexcept;
99 bool operator==(
const Address& a)
const;
100 bool operator!=(
const Address& a)
const;
103using AccessorVector = ossia::destination_index;
104SCORE_LIB_STATE_EXPORT
105QString toString(
const ossia::destination_qualifiers& d);
118 State::Address a,
const AccessorVector& v,
const ossia::unit_t&)
noexcept;
127 QString toString_unsafe()
const;
128 QString toString()
const;
129 QString toShortString()
const;
134 bool isSet()
const noexcept;
151 QString toString()
const;
154SCORE_LIB_STATE_EXPORT
155bool addressIsChildOf(
158SCORE_LIB_STATE_EXPORT
162SCORE_LIB_STATE_EXPORT
166SCORE_LIB_STATE_EXPORT
171SCORE_LIB_STATE_EXPORT std::optional<State::Address> parseAddress(
const QString& str);
172SCORE_LIB_STATE_EXPORT std::optional<State::AddressAccessor>
173parseAddressAccessor(
const QString& str);
175SCORE_LIB_STATE_EXPORT QDebug operator<<(QDebug d,
const State::Address& a);
177SCORE_LIB_STATE_EXPORT QDebug operator<<(QDebug d,
const State::AccessorVector& a);
180SCORE_LIB_STATE_EXPORT QStringList stringList(
const State::Address& addr);
186struct SCORE_LIB_STATE_EXPORT hash<
State::Address>
192struct SCORE_LIB_STATE_EXPORT hash<
State::AddressAccessor>
199SCORE_SERIALIZE_DATASTREAM_DECLARE(SCORE_LIB_STATE_EXPORT,
State::Address)
Utilities for OSSIA data structures.
Definition DeviceInterface.hpp:33
The AddressAccessorHead struct.
Definition Address.hpp:147
Definition Address.hpp:108
The Address struct.
Definition Address.hpp:58
Definition Address.hpp:24