WebFramework v3.0.12
Web framework for C++.
|
Parser for .json settings file. More...
#include <JSONSettingsParser.h>
Classes | |
struct | ExecutorSettings |
Settings for executor. More... | |
Public Member Functions | |
JSONSettingsParser (const std::string &JSONSettings) | |
Construct JSONSettingsParser from .json file. | |
JSONSettingsParser (JSONSettingsParser &&other) noexcept=default | |
Move constructor. | |
const std::unordered_map< std::string, ExecutorSettings > & | getSettings () const |
Get all settings from .json. | |
const ExecutorSettings & | getExecutorSettings (const std::string &executorName) const |
Get settings for specific executor. | |
Parser for .json settings file.
Definition at line 14 of file JSONSettingsParser.h.
framework::utility::JSONSettingsParser::JSONSettingsParser | ( | const std::string & | JSONSettings | ) |
Construct JSONSettingsParser from .json file.
JSONSettings | path to .json settings file |
file_manager::exceptions::FileDoesNotExistException | |
std::runtime_error |
|
defaultnoexcept |
Move constructor.
other | Another JSONSettingsParser |
const JSONSettingsParser::ExecutorSettings & framework::utility::JSONSettingsParser::getExecutorSettings | ( | const std::string & | executorName | ) | const |
Get settings for specific executor.
executorName | executor class name |
Definition at line 68 of file JSONSettingsParser.cpp.
const unordered_map< string, JSONSettingsParser::ExecutorSettings > & framework::utility::JSONSettingsParser::getSettings | ( | ) | const |
Get all settings from .json.
Definition at line 63 of file JSONSettingsParser.cpp.