1234567891011121314151617181920212223242526272829303132 |
- //
- // Created by robin on 8/8/15.
- //
-
- #ifndef PDNS_SLAVE_COMMANDLINEPARSER_H
- #define PDNS_SLAVE_COMMANDLINEPARSER_H
-
- # include "../DBO/CommandLineOption.h"
-
- class CommandLineOption;
-
- class CommandLineParser
- {
- public:
- CommandLineParser(int argc, char** argv);
-
- bool parse();
-
- int showHelp(int status = 0, bool stdErr = true);
-
- void addOption(CommandLineOption* opt);
-
- private:
- int _argc;
-
- char** _argv;
-
- std::vector<CommandLineOption*> _options;
- };
-
-
- #endif //PDNS_SLAVE_COMMANDLINEPARSER_H
|