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  [[nodiscard]] std::string_view optionHelp() const override;
18 
19  [[nodiscard]] static std::string getImageForId(int id);
20 
21 private:
22  CommandLineParser& parser;
23 };
24 
25 } // namespace openmsx
26 
27 #endif
void parseDone() override
Definition: HDImageCLI.cc:45
void parseOption(const std::string &option, span< std::string > &cmdLine) override
Definition: HDImageCLI.cc:25
std::string_view optionHelp() const override
Definition: HDImageCLI.cc:55
HDImageCLI(CommandLineParser &parser)
Definition: HDImageCLI.cc:18
static std::string getImageForId(int id)
Definition: HDImageCLI.cc:32
Definition: span.hh:126
This file implemented 3 utility functions:
Definition: Autofire.cc:9