SimpleFastOpenAtomicVisualiser
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Argument< T > Struct Template Reference

A command line argument. More...

#include <commandLine.h>

Public Member Functions

 Argument (std::string name, std::string description, std::string note, T defaultValue)
 Construct a new Argument.
 

Public Attributes

std::string name
 
std::string description
 
std::string note
 
T defaultValue
 
T value
 

Detailed Description

template<class T>
struct Argument< T >

A command line argument.

Template Parameters
Tthe value's type

Constructor & Destructor Documentation

◆ Argument()

template<class T >
Argument< T >::Argument ( std::string  name,
std::string  description,
std::string  note,
T  defaultValue 
)
inline

Construct a new Argument.

Template Parameters
Tthe Argument's value type.
Parameters
namethe arguments name (without "-" prefix).
descriptionthe help description.
notethe argument note.
defaultValuethe default value.

Member Data Documentation

◆ defaultValue

template<class T >
T Argument< T >::defaultValue

◆ description

template<class T >
std::string Argument< T >::description

◆ name

template<class T >
std::string Argument< T >::name

◆ note

template<class T >
std::string Argument< T >::note

◆ value

template<class T >
T Argument< T >::value

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