if branch for links json data
[dueringa_WikiWalker.git] / inc / GetoptCommandLineParser.h
blob1bf9446a251c60605b37ea5f4bc8d3281684e745
1 #ifndef WIKIWALKER_GETOPTCOMMANDLINEPARSER_H
2 #define WIKIWALKER_GETOPTCOMMANDLINEPARSER_H
4 #include <map>
5 #include <string>
7 #include "CommandLineParserBase.h"
9 namespace WikiWalker
11 //! command line parser using getopt functions
12 class GetoptCommandLineParser : public CommandLineParserBase
14 public:
15 ~GetoptCommandLineParser() override = default;
17 std::string getValue(
18 CommandLineParserBase::CommandLineOptions option) override;
19 bool hasSet(CommandLineParserBase::CommandLineOptions flag) override;
20 void parse(int argc, char** argv) override;
21 void printHelp() override;
23 private:
24 std::map<std::string, std::string> setOptions;
26 } // namespace WikiWalker
27 #endif // WIKIWALKER_GETOPTCOMMANDLINEPARSER_H