Assignments Assignments

Public Member Functions | Public Attributes | List of all members
Util::CmdLineParameters< Type > Class Template Reference

`#include <cmdLineParser.h>`

Inheritance diagram for Util::CmdLineParameters< Type >:

## Public Member Functions
| CmdLineParameters (const std::string &name)
| ~CmdLineParameters (void)
int | read (char **argv, int argc)
Public Member Functions inherited from Util::CmdLineReadable
| CmdLineReadable (const std::string &name)
virtual | ~CmdLineReadable (void)

## Public Attributes
int | count
Type * | values
Public Attributes inherited from Util::CmdLineReadable
bool | set
std::string | name

## Detailed Description

template<class Type>
class Util::CmdLineParameters< Type >

This templated class represents a named argument taking a variable number of values of of the prescribed type

## Constructor & Destructor Documentation

## ◆ CmdLineParameters()

template<class Type>

Util::CmdLineParameters< Type >::CmdLineParameters | ( | const std::string & | name | ) |

Constructor with the name of the argument

## ◆ ~CmdLineParameters()

template<class Type>

Util::CmdLineParameters< Type >::~CmdLineParameters | ( | void |  | ) |

Destructor deallocating the array of values

## Member Function Documentation

## ◆ read()

template<class Type>

int Util::CmdLineParameters< Type >::read | ( | char ** | argv,
|  | int | argc )
| virtual

Try to set the argument from the list of command line arguments. Returns thenumber of arguments ingested.

Reimplemented from Util::CmdLineReadable.

## Member Data Documentation

## ◆ count

template<class Type>

int Util::CmdLineParameters< Type >::count

The number of values the argument takes

## ◆ values

template<class Type>

Type* Util::CmdLineParameters< Type >::values

The values the parameter has been set to

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

- Assignments/Util/cmdLineParser.h
- Assignments/Util/cmdLineParser.inl