// $Id: CLIOption.hh 5954 2006-12-22 08:10:58Z mthuurne $ #ifndef CLIOPTION_HH #define CLIOPTION_HH #include #include namespace openmsx { class CLIOption { public: virtual ~CLIOption() {} virtual bool parseOption(const std::string& option, std::list& cmdLine) = 0; virtual const std::string& optionHelp() const = 0; protected: std::string getArgument(const std::string& option, std::list& cmdLine) const; std::string peekArgument(const std::list& cmdLine) const; }; class CLIFileType { public: virtual ~CLIFileType() {} virtual void parseFileType(const std::string& filename, std::list& cmdLine) = 0; virtual const std::string& fileTypeHelp() const = 0; }; } // namespace openmsx #endif