F.E.I.S/src/linear_view_mode.hpp

21 lines
442 B
C++

#pragma once
#include <variant>
#include <toml++/toml.h>
namespace linear_view {
namespace mode {
struct Beats {};
struct Waveform {};
}
using Mode = std::variant<mode::Beats, mode::Waveform>;
namespace mode {
Mode load_from_v1_0_0_table(const toml::table& linear_view);
void dump_as_v1_0_0(const Mode& mode, toml::table& linear_view);
}
const Mode default_mode = mode::Beats{};
}