CLI11
C++11 Command Line Interface Parser
|
This class provides a converter for configuration files. More...
#include <ConfigFwd.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 CLI11_NODISCARD std::string | to_flag (const ConfigItem &item) const |
Get a flag value. | |
CLI11_NODISCARD std::vector< ConfigItem > | from_file (const std::string &name) const |
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.
|
pure virtual |
Convert a configuration into an app.
Implemented in CLI::ConfigBase.
|
pure virtual |
Convert an app into a configuration.
Implemented in CLI::ConfigBase.