Add conversion for backwards links
[dueringa_WikiWalker.git] / inc / BoostPoCommandLineParser.h
blobcd7a79d3f1a5d25692734a60ff08c806f03b9d41
1 //! \file BoostPoCommandLineParser.h
3 #ifndef WIKIWALKER_BOOSTPOCOMMANDLINEPARSER_H
4 #define WIKIWALKER_BOOSTPOCOMMANDLINEPARSER_H
6 #include <string>
8 #include "CommandLineParserBase.h"
10 #include <boost/program_options.hpp>
12 namespace po = boost::program_options;
14 namespace WikiWalker
16 //! Command line parser using Boost::program_options
17 class BoostPoCommandLineParser : public CommandLineParserBase
19 public:
20 BoostPoCommandLineParser();
21 ~BoostPoCommandLineParser() override = default;
23 std::string getValue(
24 CommandLineParserBase::CommandLineOptions option) override;
25 bool hasSet(CommandLineParserBase::CommandLineOptions flag) override;
26 void parse(int argc, char** argv) override;
27 void printHelp() override;
29 private:
30 po::options_description cmdOptions;
31 po::options_description input;
32 po::options_description cmdline_options;
33 po::variables_map vm;
34 po::positional_options_description p;
36 } // namespace WikiWalker
37 #endif // WIKIWALKER_BOOSTPOCOMMANDLINEPARSER_H