Class JSONStateReader_impl

Inheritance Relationships

Base Type

  • public nlohmann::json_sax< nlohmann::json >

Class Documentation

class JSONStateReader_impl : public nlohmann::json_sax<nlohmann::json>

This is the main sax style parser for the json state It stores it’s current position within the hierarchy with mode, lastKey and current_variable_array_index

Public Functions

inline JSONStateReader_impl(const std::string &_filename, const std::shared_ptr<const ModelData> &_model, std::unordered_map<std::string, detail::Any> &_env_init, std::unordered_map<std::string, std::vector<char>> &_macro_env_init, util::StringPairUnorderedMap<std::shared_ptr<AgentVector>> &_agents_map, Verbosity _verbosity)
template<typename T>
inline bool processValue(const T val)
inline bool null()
inline bool boolean(bool b)
inline bool number_integer(number_integer_t i)
inline bool number_unsigned(number_unsigned_t u)
inline bool number_float(number_float_t d, const string_t&)
inline bool string(string_t&)
inline bool binary(binary_t&)
inline bool start_object(size_t)
inline bool key(string_t &str)
inline bool end_object()
inline bool start_array(size_t)
inline bool end_array()
inline bool parse_error(std::size_t, const std::string&, const nlohmann::json::exception &ex)