sisi4s
|
This class provides a converter for configuration files. More...
#include <CLI11.hpp>
Public Member Functions | |
virtual std::string | to_config (const App *, bool, bool, std::string) const =0 |
Convert an app into a configuration. | |
virtual std::vector< ConfigItem > | from_config (std::istream &) const =0 |
Convert a configuration into an app. | |
virtual std::string | to_flag (const ConfigItem &item) const |
Get a flag value. | |
std::vector< ConfigItem > | from_file (const std::string &name) |
Parse a config file, throw an error (ParseError:ConfigParseError or FileError) on failure. | |
virtual | ~Config ()=default |
Virtual destructor. | |
Protected Attributes | |
std::vector< ConfigItem > | items {} |
This class provides a converter for configuration files.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Convert a configuration into an app.
Implemented in CLI::ConfigBase.
|
inline |
Parse a config file, throw an error (ParseError:ConfigParseError or FileError) on failure.
|
pure virtual |
Convert an app into a configuration.
Implemented in CLI::ConfigBase.
|
inlinevirtual |
Get a flag value.
|
protected |