xentara-plugin v2.0.4
The Xentara Plugin Framework
|
A file path used to find an external config file or directory. More...
#include <xentara/config/Context.hpp>
Public Member Functions | |
ExternalConfigPath (utils::json::decoder::Value &value) | |
Constructor for a path contained in a JSON value. | |
ExternalConfigPath (const std::filesystem::path &path, const utils::json::decoder::Location &location) | |
Constructor for an arbitrary path. | |
ExternalConfigPath (std::filesystem::path &&path, const utils::json::decoder::Location &location) | |
Constructor for an arbitrary path. | |
A file path used to find an external config file or directory.
xentara::config::Context::ExternalConfigPath::ExternalConfigPath | ( | utils::json::decoder::Value & | value | ) |
Constructor for a path contained in a JSON value.
This constructor is used to find a file or directory using a path contained in a JSON value. The path is read from the value using Value::asString().
value | The JSON value containing the primary path of the object to resolve |
utils::json::decoder::TypeMismatchError | path is not a string value |
std::runtime_error | An error occurred reading the path from the JSON document |
xentara::config::Context::ExternalConfigPath::ExternalConfigPath | ( | const std::filesystem::path & | path, |
const utils::json::decoder::Location & | location | ||
) |
Constructor for an arbitrary path.
This constructor is used to find a file or directory using an arbitrary path.
path | The path to search for |
location | The location within the JSON document that the path is associated with. This is used to output the line number in error messages. The location can be a location of a value the path is derived from, or any location that helps the user find the error in the JSON document in case the file or directory cannot be resolved. |
utils::json::decoder::TypeMismatchError | path is not a string value |
std::runtime_error | An error occurred reading the path from the JSON document |
xentara::config::Context::ExternalConfigPath::ExternalConfigPath | ( | std::filesystem::path && | path, |
const utils::json::decoder::Location & | location | ||
) |
Constructor for an arbitrary path.
This constructor is used to find a file or directory using an arbitrary path.
path | The path to search for |
location | The location within the JSON document that the path is associated with. This is used to output the line number in error messages. The location can be a location of a value the path is derived from, or any location that helps the user find the error in the JSON document in case the file or directory cannot be resolved. |
utils::json::decoder::TypeMismatchError | path is not a string value |
std::runtime_error | An error occurred reading the path from the JSON document |