2021-10-10 20:26:30 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <boost/json.hpp>
|
|
|
|
|
|
|
|
class opcode_test_suite_t final {
|
|
|
|
private:
|
2021-10-11 09:43:33 +00:00
|
|
|
[[nodiscard]] static std::string read(std::string path);
|
2021-10-10 20:26:30 +00:00
|
|
|
|
|
|
|
std::string m_path;
|
|
|
|
boost::json::value m_raw;
|
|
|
|
|
|
|
|
public:
|
|
|
|
opcode_test_suite_t(std::string path);
|
|
|
|
|
2021-10-11 09:43:33 +00:00
|
|
|
[[nodiscard]] constexpr const auto& path() const noexcept { return m_path; }
|
|
|
|
[[nodiscard]] constexpr const auto& raw() const noexcept { return m_raw; }
|
|
|
|
[[nodiscard]] const boost::json::array& get_array() const noexcept;
|
2021-10-10 20:26:30 +00:00
|
|
|
|
|
|
|
void load();
|
|
|
|
};
|