Class CmdLineParserConfigFileOption

Inheritance Relationships

Base Type

Class Documentation

class CmdLineParserConfigFileOption : public iox::config::CmdLineParser

Public Functions

CmdLineParserConfigFileOption() noexcept = default
virtual ~CmdLineParserConfigFileOption() noexcept = default
CmdLineParserConfigFileOption &operator=(const CmdLineParserConfigFileOption &other) = delete
CmdLineParserConfigFileOption(const CmdLineParserConfigFileOption &other) = delete
CmdLineParserConfigFileOption &operator=(CmdLineParserConfigFileOption&&) = delete
CmdLineParserConfigFileOption(CmdLineParserConfigFileOption &&other) = delete
virtual cxx::expected<CmdLineArgs_t, CmdLineParserResult> parse(int argc, char *argv[], const CmdLineArgumentParsingMode cmdLineParsingMode = CmdLineArgumentParsingMode::ALL) noexcept override

process the passed command line arguments

Parameters:
  • argc[in] forwarding of command line arguments

  • argv[in] forwarding of command line arguments

  • cmdLineParsingMode[in] selects to parse a single option or all options

  • Result[out] wrapped in an cxx::expected, either the parsed arguments as CmdLineArgs_t struct or CmdLineParserResult

Protected Attributes

roudi::ConfigFilePathString_t m_customConfigFilePath