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.
openmonero/src/CmdLineOptions.h

38 lines
688 B

//
// Created by mwo on 6/11/15.
//
#ifndef XMREG01_CMDLINEOPTIONS_H
#define XMREG01_CMDLINEOPTIONS_H
#include <iostream>
#include <string>
#include <boost/program_options.hpp>
#include <boost/optional.hpp>
namespace xmreg
{
using namespace std;
using namespace boost::program_options;
/**
* Manages program options of this example program.
*
* Basically a wrapper for boost::program_options
*/
class CmdLineOptions {
variables_map vm;
public:
CmdLineOptions(int acc, const char *avv[]);
template<typename T>
boost::optional<T> get_option(const string & opt_name) const;
};
}
#endif //XMREG01_CMDLINEOPTIONS_H