openMSX
SaveStateCLI.hh
Go to the documentation of this file.
1#ifndef SAVESTATECLI_HH
2#define SAVESTATECLI_HH
3
4#include "CLIOption.hh"
5
6namespace openmsx {
7
8class CommandLineParser;
9
10class SaveStateCLI final : public CLIOption, public CLIFileType
11{
12public:
13 explicit SaveStateCLI(CommandLineParser& parser);
14 void parseOption(const std::string& option,
15 std::span<std::string>& cmdLine) override;
16 [[nodiscard]] std::string_view optionHelp() const override;
17 void parseFileType(const std::string& filename,
18 std::span<std::string>& cmdLine) override;
19 [[nodiscard]] std::string_view fileTypeHelp() const override;
20 [[nodiscard]] std::string_view fileTypeCategoryName() const override;
21
22private:
23 CommandLineParser& parser;
24};
25
26} // namespace openmsx
27
28#endif
void parseFileType(const std::string &filename, std::span< std::string > &cmdLine) override
Definition: SaveStateCLI.cc:24
SaveStateCLI(CommandLineParser &parser)
Definition: SaveStateCLI.cc:7
std::string_view fileTypeCategoryName() const override
Definition: SaveStateCLI.cc:51
void parseOption(const std::string &option, std::span< std::string > &cmdLine) override
Definition: SaveStateCLI.cc:14
std::string_view optionHelp() const override
Definition: SaveStateCLI.cc:19
std::string_view fileTypeHelp() const override
Definition: SaveStateCLI.cc:46
This file implemented 3 utility functions:
Definition: Autofire.cc:9
constexpr const char *const filename