XACC
|
#include <CLIParser.hpp>
Public Member Functions | |
CLIParser () | |
void | parse (int argc, char **argv) |
void | addOptions (const std::map< std::string, std::string > &options) |
void | addStringOption (const std::string key, const std::string description="") |
void | addStringOptions (const std::string &category, const std::map< std::string, std::string > &options) |
std::vector< std::string > | getIncludePaths () |
Protected Attributes | |
std::shared_ptr< options_description > | xaccOptions |
std::vector< std::string > | paths |
The role of the CLIParser is to parse all command line options provided to an XACC-enabled program. It takes upon construction to available argc and argv variables from the command line, and parses them to fill the RuntimeOptions singleton and load any XACC Compiler or Accelerator plugins.
It also queries all available OptionProviders to display all available options to the XACC user.
xacc::CLIParser::CLIParser | ( | ) |
The constructor