Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::CommandLineParser Class Reference

#include <CommandLineParser.h>

Public Types

typedef std::variant< int32_t *, uint32_t *, int64_t *, uint64_t *, double *, float *, bool *, std::string * > Value

Public Member Functions

 CommandLineParser (std::string description)
void addArgument (std::vector< std::string > const &flags, Value const &value, std::string const &help)
void printHelp (std::ostream &os=std::cout) const
void parse (int argc, const char *argv[]) const

Member Typedef Documentation

◆ Value

typedef std::variant<int32_t*, uint32_t*, int64_t*, uint64_t*, double*, float*, bool*, std::string*> sf::CommandLineParser::Value

Constructor & Destructor Documentation

◆ CommandLineParser()

sf::CommandLineParser::CommandLineParser ( std::string description)
explicit

Member Function Documentation

◆ addArgument()

void sf::CommandLineParser::addArgument ( std::vector< std::string > const & flags,
Value const & value,
std::string const & help )

◆ parse()

void sf::CommandLineParser::parse ( int argc,
const char * argv[] ) const

◆ printHelp()

void sf::CommandLineParser::printHelp ( std::ostream & os = std::cout) const

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