Class jsonReader_impl

Inheritance Relationships

Base Type

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

Class Documentation

class jsonReader_impl : public rapidjson::BaseReaderHandler<rapidjson::UTF8<>, jsonReader_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 jsonReader_impl(const std::string &_filename, const std::unordered_map<std::string, EnvironmentDescription::PropData> &_env_desc, std::unordered_map<std::pair<std::string, unsigned int>, Any> &_env_init, StringPairUnorderedMap<std::shared_ptr<AgentVector>> &_model_state)
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)