#include <json_settings_internals.h>
|
| static nlohmann::json::json_pointer | PointerFromString (std::string aPath) |
| | Builds a JSON pointer based on a given string.
|
| |
Definition at line 26 of file json_settings_internals.h.
◆ JSON_SETTINGS_INTERNALS()
| JSON_SETTINGS_INTERNALS::JSON_SETTINGS_INTERNALS |
( |
| ) |
|
|
inline |
◆ At()
| nlohmann::json & JSON_SETTINGS_INTERNALS::At |
( |
const std::string & | aPath | ) |
|
|
inline |
◆ CloneFrom()
◆ Get()
template<typename ValueType>
| ValueType JSON_SETTINGS_INTERNALS::Get |
( |
const std::string & | aPath | ) |
const |
|
inline |
◆ operator[]() [1/2]
| nlohmann::json & JSON_SETTINGS_INTERNALS::operator[] |
( |
const nlohmann::json::json_pointer & | aPointer | ) |
|
|
inline |
◆ operator[]() [2/2]
| nlohmann::json & JSON_SETTINGS_INTERNALS::operator[] |
( |
const std::string & | aPath | ) |
|
|
inline |
◆ PointerFromString()
| nlohmann::json::json_pointer JSON_SETTINGS_INTERNALS::PointerFromString |
( |
std::string | aPath | ) |
|
|
static |
Builds a JSON pointer based on a given string.
- Parameters
-
| aPath | is the path in the form "key1.key2.key3" |
- Returns
- a JSON pointer that can be used to index into a JSON object
Definition at line 48 of file json_settings.cpp.
Referenced by At(), JSON_SETTINGS::Contains(), Get(), PCB_CALCULATOR_SETTINGS::MigrateFromLegacy(), operator[](), JSON_SETTINGS::SaveToFile(), NESTED_SETTINGS::SaveToFile(), JSON_SETTINGS::SetIfPresent(), JSON_SETTINGS::SetIfPresent(), JSON_SETTINGS::SetIfPresent(), and JSON_SETTINGS::SetIfPresent().
◆ SetFromString()
template<typename ValueType>
| void JSON_SETTINGS_INTERNALS::SetFromString |
( |
const std::string & | aPath, |
|
|
ValueType | aVal ) |
|
inline |
◆ JSON_SETTINGS
◆ NESTED_SETTINGS
◆ m_original
| nlohmann::json JSON_SETTINGS_INTERNALS::m_original |
|
private |
The documentation for this class was generated from the following files: