OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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.
 
template<typename T >
bool getOption (std::string opt, T &value)
 Return the option opt in value.
 
void clear ()
 clear everything you parsed so far
 

Private Attributes

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

Constructor & Destructor Documentation

◆ MetaParser()

MetaParser::MetaParser ( boost::program_options::options_description &  desc)
inlineexplicit

Definition at line 32 of file MetaParser.hpp.

Member Function Documentation

◆ clear()

void MetaParser::clear ( )
inline

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 
)
inline

Return the option opt in value.

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

Definition at line 62 of file MetaParser.hpp.

◆ parse()

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

Parse the string of options.

Parameters
stringof options

Definition at line 42 of file MetaParser.hpp.

Field Documentation

◆ desc

boost::program_options::options_description MetaParser::desc
private

Definition at line 26 of file MetaParser.hpp.

◆ vm

boost::program_options::variables_map MetaParser::vm
private

Definition at line 28 of file MetaParser.hpp.


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