Goby3
3.1.5a
2024.05.23
|
Implementation of ConfiguratorInterface for Google Protocol buffers. More...
#include <goby/middleware/application/configurator.h>
Public Member Functions | |
ProtobufConfigurator (int argc, char *argv[]) | |
Constructs a ProtobufConfigurator. Typically passed as a parameter to goby::run. More... | |
const protobuf::AppConfig & | app_configuration () const override |
Subset of the configuration used to configure the Application itself. More... | |
Public Member Functions inherited from goby::middleware::ConfiguratorInterface< Config > | |
const Config & | cfg () const |
The configuration object produced from the command line parameters. More... | |
Protected Member Functions | |
virtual void | validate () const override |
Override to validate the configuration. More... | |
Protected Member Functions inherited from goby::middleware::ConfiguratorInterface< Config > | |
Config & | mutable_cfg () |
Derived classes can modify the configuration as needed in their constructor. More... | |
Implementation of ConfiguratorInterface for Google Protocol buffers.
Config | The Protobuf message that represents the parsed configuration |
Definition at line 77 of file configurator.h.
goby::middleware::ProtobufConfigurator< Config >::ProtobufConfigurator | ( | int | argc, |
char * | argv[] | ||
) |
Constructs a ProtobufConfigurator. Typically passed as a parameter to goby::run.
argc | Command line argument count |
argv | Command line parameters |
Definition at line 130 of file configurator.h.
|
inlineoverridevirtual |
Subset of the configuration used to configure the Application itself.
Reimplemented from goby::middleware::ConfiguratorInterface< Config >.
Definition at line 86 of file configurator.h.
|
inlineoverrideprotectedvirtual |
Override to validate the configuration.
ConfigException | if the configuration is not valid |
Reimplemented from goby::middleware::ConfiguratorInterface< Config >.
Definition at line 89 of file configurator.h.