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  [[nodiscard]] std::string_view optionHelp() const override;
17  void parseFileType(const std::string& filename,
18  span<std::string>& cmdLine) override;
19  [[nodiscard]] std::string_view fileTypeHelp() const override;
20  [[nodiscard]] std::string_view fileTypeCategoryName() const override;
21 
22 private:
23  CommandLineParser& parser;
24 };
25 
26 } // namespace openmsx
27 
28 #endif
std::string_view optionHelp() const override
Definition: ReplayCLI.cc:19
std::string_view fileTypeCategoryName() const override
Definition: ReplayCLI.cc:36
void parseOption(const std::string &option, span< std::string > &cmdLine) override
Definition: ReplayCLI.cc:14
ReplayCLI(CommandLineParser &parser)
Definition: ReplayCLI.cc:7
void parseFileType(const std::string &filename, span< std::string > &cmdLine) override
Definition: ReplayCLI.cc:24
std::string_view fileTypeHelp() const override
Definition: ReplayCLI.cc:31
Definition: span.hh:126
This file implemented 3 utility functions:
Definition: Autofire.cc:9
constexpr const char *const filename