Rerun C++ SDK
Loading...
Searching...
No Matches
timeline.hpp
1#pragma once
2
3#include "error.hpp"
4
5#include <string>
6
7struct rr_timeline;
8
9namespace rerun {
10 /// Describes the type of a timeline or time point.
11 enum class TimeType {
12 Time = 0,
13 Sequence = 1,
14 };
15
16 /// Definition of a timeline.
17 struct Timeline {
18 /// The name of the timeline.
19 std::string name;
20
21 /// The type of the timeline.
23
24 public:
25 /// Creates a new timeline.
26 Timeline(std::string _name, TimeType _type = TimeType::Time)
27 : name(std::move(_name)), type(_type) {}
28
29 Timeline() = delete;
30
31 /// To rerun C API timeline.
32 Error to_c_ffi_struct(rr_timeline& out_column) const;
33 };
34} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
TimeType
Describes the type of a timeline or time point.
Definition timeline.hpp:11
Definition of a timeline.
Definition timeline.hpp:17
std::string name
The name of the timeline.
Definition timeline.hpp:19
Timeline(std::string _name, TimeType _type=TimeType::Time)
Creates a new timeline.
Definition timeline.hpp:26
Error to_c_ffi_struct(rr_timeline &out_column) const
To rerun C API timeline.
TimeType type
The type of the timeline.
Definition timeline.hpp:22