19 std::span<std::string>& cmdLine) = 0;
21 [[nodiscard]]
virtual std::string_view
optionHelp()
const = 0;
27 const std::string& option, std::span<std::string>& cmdLine);
28 [[nodiscard]]
static std::string
peekArgument(
const std::span<std::string>& cmdLine);
40 std::span<std::string>& cmdLine) = 0;
CLIFileType & operator=(const CLIFileType &)=delete
CLIFileType(CLIFileType &&)=delete
virtual std::string_view fileTypeCategoryName() const =0
virtual void parseFileType(const std::string &filename, std::span< std::string > &cmdLine)=0
virtual std::string_view fileTypeHelp() const =0
CLIFileType & operator=(CLIFileType &&)=delete
CLIFileType(const CLIFileType &)=delete
CLIOption(const CLIOption &)=delete
static std::string getArgument(const std::string &option, std::span< std::string > &cmdLine)
CLIOption & operator=(const CLIOption &)=delete
static std::string peekArgument(const std::span< std::string > &cmdLine)
CLIOption(CLIOption &&)=delete
CLIOption & operator=(CLIOption &&)=delete
virtual std::string_view optionHelp() const =0
virtual void parseOption(const std::string &option, std::span< std::string > &cmdLine)=0
This file implemented 3 utility functions: