annotate src/include/json.h @ 4:5af270662505

Set override functions as override
author Paper <mrpapersonic@gmail.com>
date Sat, 12 Aug 2023 12:08:16 -0400
parents 23d0d9319a00
children 1d82f6e04d7d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
1 #include "../../dep/json/json.h"
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
2
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
3 namespace JSON {
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
4 std::string GetString(nlohmann::json const& json, std::string const& key);
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
5 int GetInt(nlohmann::json const& json, std::string const& key);
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
6 int64_t GetInt64(nlohmann::json const& json, std::string const& key);
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
7 bool GetBoolean(nlohmann::json const& json, std::string const& key);
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
8 double GetDouble(nlohmann::json const& json, std::string const& key);
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
9 }