annotate include/core/json.h @ 46:d0adc4aedfc8
*: update...
this commit:
1. consolidates dark theme stuff to dark_theme.cpp
2. creates a new widgets folder to store all of our
custom widgets
3. creates the list settings page in the information
dialog, although much of it is nonfunctional: it
doesn't save, and the status doesn't even get filled
in... we'll fix this later!
| author |
Paper <mrpapersonic@gmail.com> |
| date |
Sat, 23 Sep 2023 01:02:15 -0400 |
| parents |
5c0397762b53 |
| children |
fe719c109dbc |
| rev |
line source |
|
9
|
1 #ifndef __core__json_h
|
|
|
2 #define __core__json_h
|
|
|
3 #include "../../dep/json/json.h"
|
|
|
4 namespace JSON {
|
|
|
5 std::string GetString(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr, std::string def = "");
|
|
|
6 int GetInt(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr, int def = 0);
|
|
|
7 bool GetBoolean(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr, bool def = false);
|
|
|
8 double GetDouble(nlohmann::json const& json, nlohmann::json::json_pointer const& ptr, double def = 0);
|
|
|
9 } // namespace JSON
|
|
|
10 #endif // __core__json_h |