mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-02-02 08:29:45 +00:00
0deb37ab19
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
22 lines
600 B
C++
22 lines
600 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "simdjson/simdjson.h"
|
|
|
|
#include "cycles_t.h"
|
|
#include "state_t.h"
|
|
|
|
class test_t final {
|
|
private:
|
|
simdjson::dom::element m_raw;
|
|
|
|
public:
|
|
test_t(simdjson::dom::element input);
|
|
|
|
[[nodiscard]] const auto name() const noexcept { return m_raw["name"]; }
|
|
[[nodiscard]] const auto initial_state() const noexcept { return state_t(m_raw["initial"]); }
|
|
[[nodiscard]] const auto final_state() const noexcept { return state_t(m_raw["final"]); }
|
|
[[nodiscard]] const auto cycles() const noexcept { return cycles_t(m_raw["cycles"].get_array()); }
|
|
};
|