Assignments Assignments

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

`#include <cmdLineParser.h>`

Inheritance diagram for Util::CmdLineParameterArray< Type, Dim >:

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

## Public Attributes
Type | values [Dim]
Public Attributes inherited from Util::CmdLineReadable
bool | set
std::string | name

## Detailed Description

template<class Type, int Dim>
class Util::CmdLineParameterArray< Type, Dim >

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

## Constructor & Destructor Documentation

## ◆ CmdLineParameterArray()

template<class Type, int Dim>

Util::CmdLineParameterArray< Type, Dim >::CmdLineParameterArray | ( | const std::string & | name,
|  | const Type * | v = NULL )

Constructor with the name of the argument and the default values

## Member Function Documentation

## ◆ read()

template<class Type, int Dim>

int Util::CmdLineParameterArray< Type, Dim >::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

## ◆ values

template<class Type, int Dim>

Type Util::CmdLineParameterArray< Type, Dim >::values[Dim]

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