OSSIA
Open Scenario System for Interactive Application
value_conversion.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 
4 #include <ossia/network/common/parameter_properties.hpp>
5 
6 #include <vector>
7 
11 namespace ossia
12 {
13 class value;
20 template <typename T>
21 OSSIA_EXPORT T convert(const ossia::value& val);
22 
23 template <typename T>
24 OSSIA_EXPORT T convert(const T& cur, const ossia::value& val);
25 
29 template <typename T>
30 OSSIA_EXPORT T convert(const std::vector<ossia::value>& val);
31 
32 OSSIA_EXPORT ossia::value convert(const ossia::value& val, ossia::val_type newtype);
33 OSSIA_EXPORT ossia::value convert(const ossia::value& val, const ossia::value& cur);
34 
35 OSSIA_EXPORT void convert_inplace(ossia::value& val, ossia::val_type newtype);
36 OSSIA_EXPORT void convert_inplace(ossia::value& val, const ossia::value& cur);
37 }
The value class.
Definition: value.hpp:173
Definition: git_info.h:7
val_type
Enum to represent the types that a value can take.
Definition: parameter_properties.hpp:16
OSSIA_EXPORT T convert(const std::vector< ossia::value > &val)
convert Convert lists to array<float, 2/3/4>
Definition: value_conversion_impl.hpp:430