Simple++
Powerfull and lightning fast C++ Library
|
Application Class for easy access to args. More...
#include <Application.h>
Public Member Functions | |
Application () | |
Create an empty Application Class without any args. More... | |
Application (int argc, T *argv[]) | |
Create an Application with args (one character arg should be preceded by an "-" and multiple characters args with "--") More... | |
~Application () | |
destructor More... | |
const BasicString< T > * | operator[] (const BasicString< T > &argName) const |
Operator [] to access an arg using his name. More... | |
const BasicString< T > & | getApplicationName () const |
get the application name (argv[0]) More... | |
const T ** | getArgv () const |
Direct access to the argv table. More... | |
int | getArgc () const |
get the size of the argv table. More... | |
const Map< BasicString< T >, BasicString< T > > & | getArgMap () const |
Direct Access to the args Map. More... | |
Application Class for easy access to args.
Application< T >::Application | ( | ) |
Create an empty Application Class without any args.
Application< T >::Application | ( | int | argc, |
T * | argv[] | ||
) |
Create an Application with args (one character arg should be preceded by an "-" and multiple characters args with "--")
argc | Number of args (size of the argv table) |
argv | values of args |
Application< T >::~Application | ( | ) |
destructor
const BasicString< T > & Application< T >::getApplicationName | ( | ) | const |
get the application name (argv[0])
int Application< T >::getArgc | ( | ) | const |
get the size of the argv table.
const Map< BasicString< T >, BasicString< T > > & Application< T >::getArgMap | ( | ) | const |
const T ** Application< T >::getArgv | ( | ) | const |
Direct access to the argv table.
const BasicString< T > * Application< T >::operator[] | ( | const BasicString< T > & | argName | ) | const |
Operator [] to access an arg using his name.
argName | Name of the arg to retrieve. |