SAT Solver Template
Loading...
Searching...
No Matches
Classes | Concepts | Functions
cli.hpp File Reference

Contains Command Line Interface parsing utility. More...

#include <span>
#include <stdexcept>
#include <string>
#include <concepts>
#include <iostream>
#include "concepts.hpp"
Include dependency graph for cli.hpp:

Go to the source code of this file.

Classes

struct  cli::Switch
 Argument specification for switch arguments. More...
 
struct  cli::ValueArg< T >
 Argument specification for value arguments. More...
 
struct  cli::detail::TypeParse< T >
 
struct  cli::detail::TypeParse< float >
 
struct  cli::detail::TypeParse< double >
 
struct  cli::detail::TypeParse< T >
 

Concepts

concept  cli::detail::arg
 

Functions

std::string cli::parse (int argc, char *argv[])
 
template<detail::arg Option, detail::arg ... Options>
std::string cli::parse (int argc, char *argv[], const Option &option, const Options &... rest)
 

Detailed Description

Contains Command Line Interface parsing utility.

Author
Tim Luchterhand
Date
02.12.24

Function Documentation

◆ parse() [1/2]

std::string cli::parse ( int  argc,
char *  argv[] 
)
inline

Parser function.

Note
this function stops the template recursion
Parameters
argc
argv
Returns
instance file

◆ parse() [2/2]

template<detail::arg Option, detail::arg ... Options>
std::string cli::parse ( int  argc,
char *  argv[],
const Option &  option,
const Options &...  rest 
)

Compiletime recursive parse method

Template Parameters
Option
Options
Parameters
argc
argv
option
rest
Returns
instance file