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 : public CLIOption, public CLIFileType
11 {
12 public:
13  explicit SaveStateCLI(CommandLineParser& commandLineParser);
14  virtual void parseOption(const std::string& option,
15  array_ref<std::string>& cmdLine);
16  virtual string_ref optionHelp() const;
17  virtual void parseFileType(const std::string& filename,
18  array_ref<std::string>& cmdLine);
19  virtual string_ref fileTypeHelp() const;
20 
21 private:
22  CommandLineParser& parser;
23 };
24 
25 } // namespace openmsx
26 
27 #endif
virtual void parseFileType(const std::string &filename, array_ref< std::string > &cmdLine)
Definition: SaveStateCLI.cc:27
virtual void parseOption(const std::string &option, array_ref< std::string > &cmdLine)
Definition: SaveStateCLI.cc:17
SaveStateCLI(CommandLineParser &commandLineParser)
Definition: SaveStateCLI.cc:10
This class implements a subset of the proposal for std::string_ref (proposed for the next c++ standar...
Definition: string_ref.hh:18
This class implements a subset of the proposal for std::array_ref (proposed for the next c++ standard...
Definition: array_ref.hh:19
virtual string_ref optionHelp() const
Definition: SaveStateCLI.cc:22
virtual string_ref fileTypeHelp() const
Definition: SaveStateCLI.cc:52