|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
#include <SimpleJsonParser.hpp>
Public Member Functions | |
| bool | parse (const std::string &filepath) |
| bool | parseContent (const std::string &jsonContent) |
| std::string | getString (const std::string &key, const std::string &defaultVal="") const |
| int | getInt (const std::string &key, int defaultVal=0) const |
| float | getFloat (const std::string &key, float defaultVal=0.0f) const |
| bool | getBool (const std::string &key, bool defaultVal=false) const |
| const std::unordered_map< std::string, std::string > & | getData () const |
Public Attributes | |
| std::unordered_map< std::string, std::string > | data |
Private Member Functions | |
| bool | parseObject (const std::string &content) |
| void | skipWhitespace (const std::string &str, size_t &pos) |
| std::string | parseString (const std::string &str, size_t &pos) |
| std::string | parseValue (const std::string &str, size_t &pos) |
| std::string | extractNestedObject (const std::string &str, size_t &pos) |
Definition at line 15 of file SimpleJsonParser.hpp.
|
inlineprivate |
Definition at line 143 of file SimpleJsonParser.hpp.
Referenced by parseObject().
|
inline |
Definition at line 59 of file SimpleJsonParser.hpp.
References data.
|
inline |
Definition at line 165 of file SimpleJsonParser.hpp.
References data.
Referenced by rtp::config::loadSpriteMappings().
|
inline |
Definition at line 49 of file SimpleJsonParser.hpp.
References data.
|
inline |
Definition at line 39 of file SimpleJsonParser.hpp.
References data.
|
inline |
Definition at line 34 of file SimpleJsonParser.hpp.
References data.
|
inline |
Definition at line 19 of file SimpleJsonParser.hpp.
References parseObject().
|
inline |
Definition at line 30 of file SimpleJsonParser.hpp.
References parseObject().
Referenced by rtp::config::loadSpriteMappings(), and rtp::config::parseWeaponsFile().
|
inlineprivate |
Definition at line 66 of file SimpleJsonParser.hpp.
References data, extractNestedObject(), parseString(), parseValue(), and skipWhitespace().
Referenced by parse(), and parseContent().
|
inlineprivate |
Definition at line 109 of file SimpleJsonParser.hpp.
Referenced by parseObject(), and parseValue().
|
inlineprivate |
Definition at line 125 of file SimpleJsonParser.hpp.
References parseString().
Referenced by parseObject().
|
inlineprivate |
Definition at line 105 of file SimpleJsonParser.hpp.
Referenced by parseObject().
| std::unordered_map<std::string, std::string> rtp::config::SimpleJson::data |
Definition at line 17 of file SimpleJsonParser.hpp.
Referenced by getBool(), getData(), getFloat(), getInt(), getString(), and parseObject().