Class JSONStateReader_impl

Inheritance Relationships

Base Type

  • public rapidjson::BaseReaderHandler< rapidjson::UTF8<>, JSONStateReader_impl >

Class Documentation

class JSONStateReader_impl : public rapidjson::BaseReaderHandler<rapidjson::UTF8<>, JSONStateReader_impl>

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 Bool(bool b)
inline bool Int(int i)
inline bool Uint(unsigned u)
inline bool Int64(int64_t i)
inline bool Uint64(uint64_t u)
inline bool Double(double d)
inline bool String(const char*, rapidjson::SizeType, bool)
inline bool StartObject()
inline bool Key(const char *str, rapidjson::SizeType, bool)
inline bool EndObject(rapidjson::SizeType)
inline bool StartArray()
inline bool EndArray(rapidjson::SizeType)