xentara-plugin v1.2
The Xentara Plugin Framework
|
Common interface shared by the fallback config handlers of all plugin element classes. More...
Public Member Functions | |
auto | operator() (xentara::utils::json::decoder::Object::Member &member) const -> void |
Handles a single config parameter unknown to the sub class. More... | |
auto | operator() (const xentara::utils::json::decoder::Name &name, xentara::utils::json::decoder::Value &value) const -> void |
Handles a single config parameter unknown to the sub class. More... | |
auto | operator() (xentara::utils::json::decoder::Object &jsonObject) const -> void |
Handles the entire contents of the configuration. More... | |
Common interface shared by the fallback config handlers of all plugin element classes.
This documentation describes the common interface shared by the fallback config handlers of all plugin element classes. See the individual classes for more detailed information.
auto Element::FallbackConfigHandler::operator() | ( | const xentara::utils::json::decoder::Name & | name, |
xentara::utils::json::decoder::Value & | value | ||
) | -> void |
Handles a single config parameter unknown to the sub class.
You should call this operator from your implementation of loadConfig() for every object member you do not recognize.
name | The name of the member |
value | The value of the member |
std::runtime_error | The name of the member is not recognized, or the corresponding value is unsuitable |
auto Element::FallbackConfigHandler::operator() | ( | xentara::utils::json::decoder::Object & | jsonObject | ) | const -> void |
Handles the entire contents of the configuration.
You should call this operator from your implementation of loadConfig() if you do not have any configuration parameters of your own.
jsonObject | The JSON object that contains the microservice's configuration |
std::runtime_error | The configuration object copnatins an error |
auto Element::FallbackConfigHandler::operator() | ( | xentara::utils::json::decoder::Object::Member & | member | ) | const -> void |
Handles a single config parameter unknown to the sub class.
You should call this operator from your implementation of loadConfig() for every object member you do not recognize.
member | The value of the member |
std::runtime_error | The name is not recognized, or the value is unsuitable |