2#include <ossia/detail/config.hpp>
4#include <ossia/detail/string_view.hpp>
5#include <ossia/network/dataspace/dataspace_base_defs_fwd.hpp>
10struct dataspace_traits<angle_u>
12 using neutral_unit = radian_u;
13 static constexpr auto text() { constexpr_return(ossia::make_string_array(
"angle")); }
17struct dataspace_traits<color_u>
19 using neutral_unit = argb_u;
20 static constexpr auto text() { constexpr_return(ossia::make_string_array(
"color")); }
24struct dataspace_traits<distance_u>
26 using neutral_unit = meter_u;
27 static constexpr auto text()
29 constexpr_return(ossia::make_string_array(
"distance"));
34struct dataspace_traits<gain_u>
36 using neutral_unit = linear_u;
37 static constexpr auto text() { constexpr_return(ossia::make_string_array(
"gain")); }
41struct dataspace_traits<orientation_u>
43 using neutral_unit = quaternion_u;
44 static constexpr auto text()
46 constexpr_return(ossia::make_string_array(
"orientation"));
50struct dataspace_traits<position_u>
52 using neutral_unit = cartesian_3d_u;
53 static constexpr auto text()
55 constexpr_return(ossia::make_string_array(
"position"));
60struct dataspace_traits<speed_u>
62 using neutral_unit = meter_per_second_u;
63 static constexpr auto text() { constexpr_return(ossia::make_string_array(
"speed")); }
67struct dataspace_traits<timing_u>
69 using neutral_unit = second_u;
70 static constexpr auto text() { constexpr_return(ossia::make_string_array(
"time")); }