OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
timed_value.hpp
1#pragma once
2#include <ossia/network/value/value.hpp>
3
4namespace ossia
5{
6struct timed_value
7{
8 explicit timed_value(ossia::value&& v)
9 : value{std::move(v)}
10 {
11 }
12 explicit timed_value(const ossia::value& v)
13 : value{v}
14 {
15 }
16 explicit timed_value(ossia::value&& v, int64_t ts)
17 : value{std::move(v)}
18 , timestamp{ts}
19 {
20 }
21 explicit timed_value(const ossia::value& v, int64_t ts)
22 : value{v}
23 , timestamp{ts}
24 {
25 }
26
27 timed_value() = default;
28 ~timed_value() = default;
29 timed_value(const timed_value&) = default;
30 timed_value(timed_value&&) = default;
31 timed_value& operator=(const timed_value&) = default;
32 timed_value& operator=(timed_value&&) = default;
33
34 ossia::value value{};
35 int64_t timestamp{};
36};
37}
The value class.
Definition value.hpp:173
Definition git_info.h:7