2021-10-18 10:54:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-24 10:42:43 +00:00
|
|
|
#include <string_view>
|
2021-10-18 10:54:01 +00:00
|
|
|
|
2021-10-20 20:44:43 +00:00
|
|
|
#include "simdjson/simdjson.h"
|
2021-10-18 10:54:01 +00:00
|
|
|
|
2021-10-22 12:10:23 +00:00
|
|
|
#include "byte_t.h"
|
2021-10-18 10:54:01 +00:00
|
|
|
|
2021-10-22 12:10:23 +00:00
|
|
|
class cycle_t final : public byte_t {
|
2021-10-18 10:54:01 +00:00
|
|
|
public:
|
2021-10-18 16:19:28 +00:00
|
|
|
cycle_t(simdjson::dom::array input) noexcept;
|
2021-10-18 10:54:01 +00:00
|
|
|
|
2024-01-06 12:17:15 +00:00
|
|
|
[[nodiscard]] auto action() const noexcept { return std::string(std::string_view(at(2))); }
|
2021-10-18 10:54:01 +00:00
|
|
|
};
|