XACC
Public Member Functions | Protected Attributes | List of all members
xacc::CLIParser Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

xacc::CLIParser::CLIParser ( )

The constructor


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