SaveStateCLI.hh 680 B

1234567891011121314151617181920212223242526272829
  1. #ifndef SAVESTATECLI_HH
  2. #define SAVESTATECLI_HH
  3. #include "CLIOption.hh"
  4. namespace openmsx {
  5. class CommandLineParser;
  6. class SaveStateCLI final : public CLIOption, public CLIFileType
  7. {
  8. public:
  9. explicit SaveStateCLI(CommandLineParser& parser);
  10. void parseOption(const std::string& option,
  11. span<std::string>& cmdLine) override;
  12. std::string_view optionHelp() const override;
  13. void parseFileType(const std::string& filename,
  14. span<std::string>& cmdLine) override;
  15. std::string_view fileTypeHelp() const override;
  16. std::string_view fileTypeCategoryName() const override;
  17. private:
  18. CommandLineParser& parser;
  19. };
  20. } // namespace openmsx
  21. #endif