OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
MetaParser Class Reference

Detailed Description

Definition at line 24 of file MetaParser.hpp.

Public Member Functions

 MetaParser (boost::program_options::options_description &desc)
bool parse (std::string &opts)
 Parse the string of options. More...
template<typename T >
bool getOption (std::string opt, T &value)
 Return the option opt in value. More...
void clear ()
 clear everything you parsed so far More...

Private Attributes

boost::program_options::options_description desc
boost::program_options::variables_map vm

Member Function Documentation

◆ clear()

void MetaParser::clear ( )

clear everything you parsed so far

Definition at line 77 of file MetaParser.hpp.

◆ getOption()

template<typename T >
bool MetaParser::getOption ( std::string  opt,
T &  value 

Return the option opt in value.

optoption to check
valuewhere to store the value of the option
true if the option has been set

Definition at line 62 of file MetaParser.hpp.

◆ parse()

bool MetaParser::parse ( std::string &  opts)

Parse the string of options.

stringof options

Definition at line 42 of file MetaParser.hpp.

The documentation for this class was generated from the following file: