EightBit/M6502/HarteTest_6502/json_t.h
Adrian Conlon 6a59bfbcd8 First stab at using the Harte randomised processor tests. Some failures detected in the M6502 run.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2021-10-10 21:26:30 +01:00

25 lines
998 B
C++

#pragma once
#include <string>
#include <boost/json.hpp>
class json_t {
protected:
static const boost::json::value& get_value(const boost::json::object& object, std::string key);
static int64_t get_int64(const boost::json::value& value);
static uint16_t get_uint16(const boost::json::value& value);
static uint8_t get_uint8(const boost::json::value& value);
static int64_t get_int64(const boost::json::object& object, std::string key);
static uint16_t get_uint16(const boost::json::object& object, std::string key);
static uint8_t get_uint8(const boost::json::object& object, std::string key);
static const boost::json::array& get_array(const boost::json::value& value);
static const boost::json::array& get_array(const boost::json::object& object, std::string key);
static const boost::json::string& get_string(const boost::json::value& value);
static const boost::json::string& get_string(const boost::json::object& object, std::string key);
};