/* */ #ifndef _D_OPTION_PARSER_H_ #define _D_OPTION_PARSER_H_ #include "common.h" #include "Option.h" #include "OptionHandler.h" #include class OptionParser { private: OptionHandlers _optionHandlers; public: ~OptionParser() {} OptionHandlerHandle getOptionHandlerByName(const string& optName); void parse(Option* option, istream& ios); void setOptionHandlers(const OptionHandlers& optionHandlers) { _optionHandlers = optionHandlers; } }; typedef SharedHandle OptionParserHandle; #endif // _D_OPTION_PARSER_H_