openMSX
HDImageCLI.hh
Go to the documentation of this file.
1 #ifndef HDIMAGECLI_HH
2 #define HDIMAGECLI_HH
3 
4 #include "CLIOption.hh"
5 
6 namespace openmsx {
7 
8 class CommandLineParser;
9 
10 class HDImageCLI final : public CLIOption
11 {
12 public:
13  explicit HDImageCLI(CommandLineParser& parser);
14  void parseOption(const std::string& option,
15  span<std::string>& cmdLine) override;
16  void parseDone() override;
17  std::string_view optionHelp() const override;
18 
19  static std::string getImageForId(int id);
20 
21 private:
22  CommandLineParser& parser;
23 };
24 
25 } // namespace openmsx
26 
27 #endif
openmsx::CLIOption
Definition: CLIOption.hh:9
openmsx::HDImageCLI::parseOption
void parseOption(const std::string &option, span< std::string > &cmdLine) override
Definition: HDImageCLI.cc:22
openmsx::HDImageCLI::getImageForId
static std::string getImageForId(int id)
Definition: HDImageCLI.cc:29
openmsx::HDImageCLI::parseDone
void parseDone() override
Definition: HDImageCLI.cc:42
span
Definition: span.hh:34
openmsx::HDImageCLI
Definition: HDImageCLI.hh:10
openmsx::HDImageCLI::HDImageCLI
HDImageCLI(CommandLineParser &parser)
Definition: HDImageCLI.cc:15
openmsx::CommandLineParser
Definition: CommandLineParser.hh:32
openmsx::HDImageCLI::optionHelp
std::string_view optionHelp() const override
Definition: HDImageCLI.cc:53
CLIOption.hh
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5