CLI11
1.9.1
|
ConfigTOML generates a TOML compliant output. More...
#include <ConfigFwd.hpp>
Public Member Functions | |
ConfigTOML () | |
![]() | |
std::string | to_config (const App *, bool default_also, bool write_description, std::string prefix) const override |
Convert an app into a configuration. More... | |
std::vector< ConfigItem > | from_config (std::istream &input) const override |
Convert a configuration into an app. More... | |
ConfigBase * | comment (char cchar) |
Specify the configuration for comment characters. More... | |
ConfigBase * | arrayBounds (char aStart, char aEnd) |
Specify the start and end characters for an array. More... | |
ConfigBase * | arrayDelimiter (char aSep) |
Specify the delimiter character for an array. More... | |
ConfigBase * | valueSeparator (char vSep) |
Specify the delimiter between a name and value. More... | |
![]() | |
virtual std::string | to_flag (const ConfigItem &item) const |
Get a flag value. More... | |
std::vector< ConfigItem > | from_file (const std::string &name) |
Parse a config file, throw an error (ParseError:ConfigParseError or FileError) on failure. More... | |
virtual | ~Config ()=default |
Virtual destructor. More... | |
Additional Inherited Members | |
![]() | |
char | commentChar = ';' |
the character used for comments More... | |
char | arrayStart = '\0' |
the character used to start an array '\0' is a default to not use More... | |
char | arrayEnd = '\0' |
the character used to end an array '\0' is a default to not use More... | |
char | arraySeparator = ' ' |
the character used to separate elements in an array More... | |
char | valueDelimiter = '=' |
the character used separate the name from the value More... | |
![]() | |
std::vector< ConfigItem > | items {} |
ConfigTOML generates a TOML compliant output.
|
inline |