3 #include <ossia/detail/string_view.hpp>
4 #include <ossia/network/common/parameter_properties.hpp>
5 #include <ossia/network/value/vec.hpp>
18 struct value_with_unit;
102 template <
typename T>
The value class.
Definition: value.hpp:173
val_type
Enum to represent the types that a value can take.
Definition: parameter_properties.hpp:16
char get_unit_accessor(const ossia::unit_t &unit, uint8_t n)
get_unit_accessor Return the character corresponding to the accessor
Definition: dataspace_visitors.cpp:153
value to_value(const value_with_unit &v)
convert Convert a value + unit to a simple value
Definition: dataspace_visitors.cpp:232
bool check_units_convertible(const ossia::unit_t &lhs, const ossia::unit_t &rhs)
Checks ///.
Definition: dataspace_visitors.cpp:22
unit_t parse_pretty_unit(std::string_view text)
parse_pretty_unit Create a unit from a valid unit in the format of get_pretty_unit_text
Definition: dataspace_visitors.cpp:70
std::string_view get_unit_accessors(const unit_t &u)
get_unit_accessors
Definition: dataspace_visitors.cpp:38
std::string_view get_dataspace_text(const unit_t &u)
Parse ///.
Definition: dataspace_visitors.cpp:28
OSSIA_EXPORT T convert(const ossia::value &val)
convert Convert a value to the given type.
Definition: value_conversion_impl.hpp:411
unit_t parse_unit(std::string_view text, const unit_t &dataspace)
parse_unit Takes a text and a dataspace and gives a corresponding unit.
Definition: dataspace_visitors.cpp:57
unit_t parse_dataspace(std::string_view text)
parse_dataspace
Definition: dataspace_visitors.cpp:89
std::string_view get_pretty_unit_text(const unit_t &u)
get_pretty_unit_text Unit for human readability and debugging
Definition: dataspace_visitors.cpp:43
std::string_view get_unit_text(const unit_t &u)
get_unit_text
Definition: dataspace_visitors.cpp:33
val_type matching_type(const unit_t &u)
underlying_type Get the implementation type of an unit
Definition: dataspace_visitors.cpp:198
ossia::value_with_unit merge(const value_with_unit &vu, const ossia::value &val, ossia::destination_index idx)
merge Merge a computed value in a unit-aware value
Definition: dataspace_visitors.cpp:311
value_with_unit make_value(const ossia::value &v, const ossia::unit_t &u)
Convert ///.
Definition: dataspace_visitors.cpp:178
unit_t make_unit(uint64_t dataspace, uint64_t unit)
get_unit Create an unit from indexes in the variant
Definition: dataspace_visitors.cpp:193
ossia::small_vector< int32_t, 2 > destination_index
Definition: destination_index.hpp:40
unit_t to_unit(const value_with_unit &v)
to_unit Get the unit part of a value_with_unit
Definition: dataspace_visitors.cpp:237
std::string to_pretty_string(const value_with_unit &v)
to_pretty_string Pretty string of unit & value
Definition: dataspace_visitors.cpp:242
domain A domain of values
Definition: domain_base.hpp:23
Definition: dataspace.hpp:24
Definition: value_with_unit.hpp:13