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