A helper object used to handle config parameters unknown to the sub class.
More...
#include <io/Component.hpp>
A helper object used to handle config parameters unknown to the sub class.
- See also
- Loading Element Configs
- Examples
- LoadingElementConfig.cpp
◆ ~FallbackConfigHandler()
xentara::io::Component::FallbackConfigHandler::~FallbackConfigHandler |
( |
| ) |
|
|
pure virtualdefault |
◆ operator()() [1/3]
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.
- Parameters
-
name | The name of the member |
value | The value of the member |
- Exceptions
-
std::runtime_error | The name of the member is not recognized, or the corresponding value is unsuitable |
◆ operator()() [2/3]
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.
- Parameters
-
jsonObject | The JSON object that contains the microservice's configuration |
- Exceptions
-
◆ operator()() [3/3]
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.
- Parameters
-
member | The value of the member |
- Exceptions
-