openMSX
CassettePlayerCLI.hh
Go to the documentation of this file.
1#ifndef CASSETTEPLAYERCLI_HH
2#define CASSETTEPLAYERCLI_HH
3
4#include "CLIOption.hh"
5
6namespace openmsx {
7
8class CommandLineParser;
9
10class CassettePlayerCLI final : public CLIOption, public CLIFileType
11{
12public:
13 static std::span<const std::string_view> getExtensions();
14
15public:
16 explicit CassettePlayerCLI(CommandLineParser& parser);
17 void parseOption(const std::string& option,
18 std::span<std::string>& cmdLine) override;
19 [[nodiscard]] std::string_view optionHelp() const override;
20 void parseFileType(const std::string& filename,
21 std::span<std::string>& cmdLine) override;
22 [[nodiscard]] std::string_view fileTypeHelp() const override;
23 [[nodiscard]] std::string_view fileTypeCategoryName() const override;
24
25private:
26 CommandLineParser& parser;
27};
28
29} // namespace openmsx
30
31#endif
void parseOption(const std::string &option, std::span< std::string > &cmdLine) override
std::string_view fileTypeCategoryName() const override
void parseFileType(const std::string &filename, std::span< std::string > &cmdLine) override
std::string_view fileTypeHelp() const override
static std::span< const std::string_view > getExtensions()
std::string_view optionHelp() const override
This file implemented 3 utility functions:
Definition Autofire.cc:11