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 > | getLocalizedString (const std::string &id, const std::string &locale="en") const =0 |
| | Get the Localized String object.
|
| virtual std::optional< std::string > | getEmail (const std::string &id) const =0 |
| | Get the Email object.
|
| virtual std::optional< std::string > | getUrl (const std::string &id) const =0 |
| | Get the Url object.
|
| virtual std::optional< std::string > | getTel (const std::string &id) const =0 |
| | Get the Tel object.
|
| virtual std::optional< std::string > | getPath (const std::string &id) const =0 |
| | Get the Path object.
|
| virtual std::string | getCustomStringSign () const =0 |
| | Get the Custom String Sign object.
|
Interface for loading custom strings from JSON.
◆ ~ICustomStringsLoader()
| virtual dotnamecpp::utils::ICustomStringsLoader::~ICustomStringsLoader |
( |
| ) |
|
|
virtualdefault |
◆ getCustomStringSign()
| virtual std::string dotnamecpp::utils::ICustomStringsLoader::getCustomStringSign |
( |
| ) |
const |
|
nodiscardpure virtual |
◆ getEmail()
| virtual std::optional< std::string > dotnamecpp::utils::ICustomStringsLoader::getEmail |
( |
const std::string & | id | ) |
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 |
◆ getTel()
| virtual std::optional< std::string > dotnamecpp::utils::ICustomStringsLoader::getTel |
( |
const std::string & | id | ) |
const |
|
nodiscardpure virtual |
◆ getUrl()
| virtual std::optional< std::string > dotnamecpp::utils::ICustomStringsLoader::getUrl |
( |
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: