OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
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
11namespace ossia
12{
13class value;
20template <typename T>
21OSSIA_EXPORT T convert(const ossia::value& val);
22
23template <typename T>
24OSSIA_EXPORT T convert(const T& cur, const ossia::value& val);
25
29template <typename T>
30OSSIA_EXPORT T convert(const std::vector<ossia::value>& val);
31
32OSSIA_EXPORT ossia::value convert(const ossia::value& val, ossia::val_type newtype);
33OSSIA_EXPORT ossia::value convert(const ossia::value& val, const ossia::value& cur);
34
35OSSIA_EXPORT void convert_inplace(ossia::value& val, ossia::val_type newtype);
36OSSIA_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