OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
dataspace_base_fwd.hpp
1#pragma once
2#include <ossia/detail/config.hpp>
3
4#include <ossia/detail/string_view.hpp>
5#include <ossia/network/dataspace/dataspace_base_defs_fwd.hpp>
6
7namespace ossia
8{
9template <>
10struct dataspace_traits<angle_u>
11{
12 using neutral_unit = radian_u;
13 static constexpr auto text() { constexpr_return(ossia::make_string_array("angle")); }
14};
15
16template <>
17struct dataspace_traits<color_u>
18{
19 using neutral_unit = argb_u;
20 static constexpr auto text() { constexpr_return(ossia::make_string_array("color")); }
21};
22
23template <>
24struct dataspace_traits<distance_u>
25{
26 using neutral_unit = meter_u;
27 static constexpr auto text()
28 {
29 constexpr_return(ossia::make_string_array("distance"));
30 }
31};
32
33template <>
34struct dataspace_traits<gain_u>
35{
36 using neutral_unit = linear_u;
37 static constexpr auto text() { constexpr_return(ossia::make_string_array("gain")); }
38};
39
40template <>
41struct dataspace_traits<orientation_u>
42{
43 using neutral_unit = quaternion_u;
44 static constexpr auto text()
45 {
46 constexpr_return(ossia::make_string_array("orientation"));
47 }
48};
49template <>
50struct dataspace_traits<position_u>
51{
52 using neutral_unit = cartesian_3d_u;
53 static constexpr auto text()
54 {
55 constexpr_return(ossia::make_string_array("position"));
56 }
57};
58
59template <>
60struct dataspace_traits<speed_u>
61{
62 using neutral_unit = meter_per_second_u;
63 static constexpr auto text() { constexpr_return(ossia::make_string_array("speed")); }
64};
65
66template <>
67struct dataspace_traits<timing_u>
68{
69 using neutral_unit = second_u;
70 static constexpr auto text() { constexpr_return(ossia::make_string_array("time")); }
71};
72}
Definition git_info.h:7