You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CommandLineParser.h 489B

123456789101112131415161718192021222324252627282930
  1. //
  2. // Created by robin on 8/8/15.
  3. //
  4. #ifndef PDNS_SLAVE_COMMANDLINEPARSER_H
  5. #define PDNS_SLAVE_COMMANDLINEPARSER_H
  6. # include "DBO/CommandLineOption.h"
  7. class CommandLineParser
  8. {
  9. public:
  10. CommandLineParser(int argc, char** argv);
  11. bool parse();
  12. int showHelp(int status = 0, bool stdErr = true);
  13. void addOption(CommandLineOption* opt);
  14. private:
  15. int _argc;
  16. char** _argv;
  17. std::vector<CommandLineOption*> _options;
  18. };
  19. #endif //PDNS_SLAVE_COMMANDLINEPARSER_H