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>
17 struct 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;
103 using AccessorVector = ossia::destination_index;
104 SCORE_LIB_STATE_EXPORT
105 QString 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;
154 SCORE_LIB_STATE_EXPORT
155 bool addressIsChildOf(
158 SCORE_LIB_STATE_EXPORT
162 SCORE_LIB_STATE_EXPORT
166 SCORE_LIB_STATE_EXPORT
171 SCORE_LIB_STATE_EXPORT std::optional<State::Address> parseAddress(
const QString& str);
172 SCORE_LIB_STATE_EXPORT std::optional<State::AddressAccessor>
173 parseAddressAccessor(
const QString& str);
175 SCORE_LIB_STATE_EXPORT QDebug operator<<(QDebug d,
const State::Address& a);
177 SCORE_LIB_STATE_EXPORT QDebug operator<<(QDebug d,
const State::AccessorVector& a);
180 SCORE_LIB_STATE_EXPORT QStringList stringList(
const State::Address& addr);
186 struct SCORE_LIB_STATE_EXPORT hash<
State::Address>
192 struct SCORE_LIB_STATE_EXPORT hash<
State::AddressAccessor>
199 SCORE_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