FlowSieve  3.0.0
Coarse Graining Routines
Public Member Functions | List of all members
InputParser Class Reference

Class to process command-line arguments. More...

#include <functions.hpp>

Public Member Functions

 InputParser (int &argc, char **argv)
 
const std::string getCmdOption (const std::string &option, const std::string &default_value="") const
 
bool cmdOptionExists (const std::string &option) const
 
void getFilterScales (std::vector< double > &filter_scales, const std::string &argname) const
 
void getListofStrings (std::vector< std::string > &list_of_strings, const std::string &argname) const
 

Detailed Description

Class to process command-line arguments.

This parser tool was provided by StackOverflow user 'iain' at the following post. mild modifications have been made to adapt the code to our purposes.

https://stackoverflow.com/questions/865668/how-to-parse-command-line-arguments-in-c


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