Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
CLI::ConfigTOML Class Reference

ConfigTOML generates a TOML compliant output. More...

#include <CLI11.hpp>

Inheritance diagram for CLI::ConfigTOML:
Collaboration diagram for CLI::ConfigTOML:

Public Member Functions

 ConfigTOML ()
 
- Public Member Functions inherited from CLI::ConfigBase
std::string to_config (const App *, bool default_also, bool write_description, std::string prefix) const override
 Convert an app into a configuration.
 
std::vector< ConfigItem > from_config (std::istream &input) const override
 Convert a configuration into an app.
 
ConfigBase * comment (char cchar)
 Specify the configuration for comment characters.
 
ConfigBase * arrayBounds (char aStart, char aEnd)
 Specify the start and end characters for an array.
 
ConfigBase * arrayDelimiter (char aSep)
 Specify the delimiter character for an array.
 
ConfigBase * valueSeparator (char vSep)
 Specify the delimiter between a name and value.
 
- Public Member Functions inherited from CLI::Config
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.
 

Additional Inherited Members

- Protected Attributes inherited from CLI::ConfigBase
char commentChar = ';'
 the character used for comments
 
char arrayStart = '\0'
 the character used to start an array '\0' is a default to not use
 
char arrayEnd = '\0'
 the character used to end an array '\0' is a default to not use
 
char arraySeparator = ' '
 the character used to separate elements in an array
 
char valueDelimiter = '='
 the character used separate the name from the value
 
- Protected Attributes inherited from CLI::Config
std::vector< ConfigItem > items {}
 

Detailed Description

Definition at line 2060 of file CLI11.hpp.

Constructor & Destructor Documentation

◆ ConfigTOML()

CLI::ConfigTOML::ConfigTOML ( )
inline

Definition at line 2063 of file CLI11.hpp.

2063 {
2064 commentChar = '#';
2065 arrayStart = '[';
2066 arrayEnd = ']';
2067 arraySeparator = ',';
2068 valueDelimiter = '=';
2069 }
char arraySeparator
the character used to separate elements in an array
Definition CLI11.hpp:2024
char valueDelimiter
the character used separate the name from the value
Definition CLI11.hpp:2026
char arrayStart
the character used to start an array '\0' is a default to not use
Definition CLI11.hpp:2020
char arrayEnd
the character used to end an array '\0' is a default to not use
Definition CLI11.hpp:2022
char commentChar
the character used for comments
Definition CLI11.hpp:2018

The documentation for this class was generated from the following file: