openMSX
SaveStateCLI.hh
Go to the documentation of this file.
1 #ifndef SAVESTATECLI_HH
2 #define SAVESTATECLI_HH
3 
4 #include "CLIOption.hh"
5 
6 namespace openmsx {
7 
8 class CommandLineParser;
9 
10 class SaveStateCLI final : public CLIOption, public CLIFileType
11 {
12 public:
13  explicit SaveStateCLI(CommandLineParser& commandLineParser);
14  void parseOption(const std::string& option,
15  array_ref<std::string>& cmdLine) override;
16  string_ref optionHelp() const override;
17  void parseFileType(const std::string& filename,
18  array_ref<std::string>& cmdLine) override;
19  string_ref fileTypeHelp() const override;
20 
21 private:
22  CommandLineParser& parser;
23 };
24 
25 } // namespace openmsx
26 
27 #endif
SaveStateCLI(CommandLineParser &commandLineParser)
Definition: SaveStateCLI.cc:9
string_ref fileTypeHelp() const override
Definition: SaveStateCLI.cc:55
This class implements a subset of the proposal for std::string_ref (proposed for the next c++ standar...
Definition: string_ref.hh:18
string_ref optionHelp() const override
Definition: SaveStateCLI.cc:21
void parseFileType(const std::string &filename, array_ref< std::string > &cmdLine) override
Definition: SaveStateCLI.cc:26
This class implements a subset of the proposal for std::array_ref (proposed for the next c++ standard...
Definition: array_ref.hh:19
void parseOption(const std::string &option, array_ref< std::string > &cmdLine) override
Definition: SaveStateCLI.cc:16