2021-10-10 20:26:30 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-20 20:44:43 +00:00
|
|
|
#include "simdjson/simdjson.h"
|
2021-10-11 18:13:05 +00:00
|
|
|
|
2021-10-22 12:10:23 +00:00
|
|
|
#include "element_t.h"
|
2021-10-18 10:54:01 +00:00
|
|
|
#include "cycles_t.h"
|
2021-10-10 20:26:30 +00:00
|
|
|
#include "state_t.h"
|
|
|
|
|
2021-10-22 12:10:23 +00:00
|
|
|
class test_t final : public element_t {
|
2021-10-18 10:54:01 +00:00
|
|
|
public:
|
2024-01-10 14:41:37 +00:00
|
|
|
test_t() noexcept {}
|
|
|
|
|
|
|
|
test_t(const simdjson::dom::element input) noexcept
|
|
|
|
: element_t(input) {}
|
2021-10-11 18:13:05 +00:00
|
|
|
|
2021-10-21 21:03:07 +00:00
|
|
|
[[nodiscard]] auto name() const noexcept { return at("name"); }
|
2021-10-22 10:24:45 +00:00
|
|
|
[[nodiscard]] auto initial() const noexcept { return state_t(at("initial")); }
|
|
|
|
[[nodiscard]] auto final() const noexcept { return state_t(at("final")); }
|
2021-10-21 21:03:07 +00:00
|
|
|
[[nodiscard]] auto cycles() const noexcept { return cycles_t(array_at("cycles")); }
|
2021-10-18 10:54:01 +00:00
|
|
|
};
|