WarpX
Namespaces | Typedefs | Enumerations | Functions
QedTablesArgParser.H File Reference
#include <optional>
#include <string>
#include <tuple>
#include <unordered_map>
#include <utility>
#include <variant>
#include <vector>

Go to the source code of this file.

Namespaces

 ArgParser
 

Typedefs

using ArgParser::ArgVal = std::optional< std::variant< int, double, std::string > >
 
using ArgParser::Key = std::tuple< std::string, ArgType, std::string >
 
using ArgParser::ParsedArgs = std::unordered_map< std::string, ArgVal >
 

Enumerations

enum class  ArgParser::ArgType { ArgParser::NoArg , ArgParser::Integer , ArgParser::Double , ArgParser::String }
 

Functions

template<typename T >
ArgParser::GetVal (const ArgVal &arg_val)
 Gets the value out of an ArgVal (std::optional<std::variant<int, double, std::string>>) object. More...
 
ParsedArgs ArgParser::ParseArgs (const std::vector< Key > &keys, const int argc, char const *const *argv)
 Function to parse the command line arguments. More...
 
void ArgParser::PrintHelp (const std::vector< Key > &cmd_list)
 Prints the command line options. More...