1 //! \file BoostPoCommandLineParser.h
3 #ifndef WIKIWALKER_BOOSTPOCOMMANDLINEPARSER_H
4 #define WIKIWALKER_BOOSTPOCOMMANDLINEPARSER_H
8 #include "CommandLineParserBase.h"
10 #include <boost/program_options.hpp>
12 namespace po
= boost::program_options
;
16 //! Command line parser using Boost::program_options
17 class BoostPoCommandLineParser
: public CommandLineParserBase
20 BoostPoCommandLineParser();
21 ~BoostPoCommandLineParser() override
= default;
24 CommandLineParserBase::CommandLineOptions option
) override
;
25 bool hasSet(CommandLineParserBase::CommandLineOptions flag
) override
;
26 void parse(int argc
, char** argv
) override
;
27 void printHelp() override
;
30 po::options_description cmdOptions
;
31 po::options_description input
;
32 po::options_description cmdline_options
;
34 po::positional_options_description p
;
36 } // namespace WikiWalker
37 #endif // WIKIWALKER_BOOSTPOCOMMANDLINEPARSER_H