Interface for loading custom strings from JSON.
More...
#include <ICustomStringsLoader.hpp>
|
| virtual | ~ICustomStringsLoader ()=default |
| virtual Result< nlohmann::json, JsonError > | load () const =0 |
| | Load the custom strings JSON data.
|
| virtual std::optional< std::string > | getPath (const std::string &id) const =0 |
| | Get the Path object.
|
| virtual std::optional< std::string > | getCustomKey (const std::string &id, const std::string &key) const =0 |
| | Get the Custom Key object.
|
| virtual std::optional< std::string > | getLocalizedString (const std::string &id, const std::string &locale="en") const =0 |
| | Get the Localized String object.
|
Interface for loading custom strings from JSON.
◆ ~ICustomStringsLoader()
| virtual dotnamecpp::utils::ICustomStringsLoader::~ICustomStringsLoader |
( |
| ) |
|
|
virtualdefault |
◆ getCustomKey()
| virtual std::optional< std::string > dotnamecpp::utils::ICustomStringsLoader::getCustomKey |
( |
const std::string & | id, |
|
|
const std::string & | key ) const |
|
nodiscardpure virtual |
◆ getLocalizedString()
| virtual std::optional< std::string > dotnamecpp::utils::ICustomStringsLoader::getLocalizedString |
( |
const std::string & | id, |
|
|
const std::string & | locale = "en" ) const |
|
nodiscardpure virtual |
◆ getPath()
| virtual std::optional< std::string > dotnamecpp::utils::ICustomStringsLoader::getPath |
( |
const std::string & | id | ) |
const |
|
nodiscardpure virtual |
◆ load()
| virtual Result< nlohmann::json, JsonError > dotnamecpp::utils::ICustomStringsLoader::load |
( |
| ) |
const |
|
nodiscardpure virtual |
The documentation for this class was generated from the following file: