GPUMLib  0.2.2
GPU Machine Learning Library
Public Member Functions | List of all members
Settings Class Reference

Utility class to parse main()'s arguments, store them in a convenient list and access when needed. More...

#include <Settings.h>

Public Member Functions

 Settings (int argc, char **argv)
 
 ~Settings ()
 Call this to free the internal structures created after using the constructor.
 
ArgumentgetArgument (size_t pos)
 
size_t getAmountArguments ()
 

Detailed Description

Utility class to parse main()'s arguments, store them in a convenient list and access when needed.

Definition at line 52 of file Settings.h.

Constructor & Destructor Documentation

Settings ( int  argc,
char **  argv 
)
inline

Receives the same arguments as the main function and creates an internal list with the arguments

Parameters
argcThe same argc as given in main()
argvThe same argv as given in main()

Definition at line 91 of file Settings.h.

Member Function Documentation

size_t getAmountArguments ( )
inline

Gets the number of parsed arguments

Returns
The number of parsed arguments

Definition at line 115 of file Settings.h.

Argument* getArgument ( size_t  pos)
inline

Gets the argument at the given position (the nth argument)

Parameters
posThe position of the argument to be returned
Returns
The Argument at position pos

Definition at line 109 of file Settings.h.


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