14const std::string ConversionGeneralSettings::helpOptionName =
"help";
15const std::string ConversionGeneralSettings::helpOptionShortName =
"h";
16const std::string ConversionGeneralSettings::versionOptionName =
"version";
17const std::string ConversionGeneralSettings::verboseOptionName =
"verbose";
18const std::string ConversionGeneralSettings::verboseOptionShortName =
"v";
19const std::string ConversionGeneralSettings::debugOptionName =
"debug";
20const std::string ConversionGeneralSettings::traceOptionName =
"trace";
21const std::string ConversionGeneralSettings::configOptionName =
"config";
22const std::string ConversionGeneralSettings::configOptionShortName =
"c";
27 .setShortName(helpOptionShortName)
31 "'frequent' for frequently used options, 'all' for the complete help, or a regular expression to show help for all matching entities.")
43 "If given, this file will be read and parsed for additional configuration settings.")
44 .setShortName(configOptionShortName)
virtual std::string getValueAsString() const =0
Retrieves the value of this argument as a string.
static ArgumentBuilder createStringArgument(std::string const &name, std::string const &description)
Creates a string argument with the given parameters.
static std::shared_ptr< ArgumentValidator< std::string > > createExistingFileValidator()
This class provides the interface to create an option...
ArgumentBase const & getArgumentByName(std::string const &argumentName) const
Returns a reference to the argument with the specified long name.
bool getHasOptionBeenSet() const
Retrieves whether the option has been set.
bool isConfigSet() const
Retrieves whether the config option was set.
bool isDebugOutputSet() const
Retrieves whether the debug output option was set.
bool isTraceOutputSet() const
Retrieves whether the trace output option was set.
bool isVerboseSet() const
Retrieves whether the verbose option was set.
std::string getHelpFilterExpression() const
Retrieves the name of the module for which to show the help or "all" to indicate that the full help n...
ConversionGeneralSettings()
bool isVersionSet() const
Retrieves whether the version option was set.
void finalize() override
Prepares the modules for further usage, should be called at the end of the initialization,...
std::string getConfigFilename() const
Retrieves the name of the file that is to be scanned for settings.
static const std::string moduleName
bool isHelpSet() const
Retrieves whether the help option was set.
bool check() const override
Checks whether the settings are consistent.
This is the base class of the settings for a particular module.
void addOption(std::shared_ptr< Option > const &option)
Adds and registers the given option.
Option & getOption(std::string const &longName)
Retrieves the option with the given long name.
SettingsType const & getModule()
Get module.