Go to the source code of this file.
Defines | |
#define | CMD_PARSE_BEGIN(i, count) |
#define | CMD_PARSE_BEGIN_SILENT(i, count) |
#define | CMD_PARSE_END |
#define | CMD_PARSE_END_SILENT |
#define | parseDouble(name, value) |
#define | parseDoubleSilent(name, value) |
#define | parseFlag(name, value) |
#define | parseFlagSilent(name, value) |
#define | parseInt(name, value) |
#define | parseIntSilent(name, value) |
#define | parseString(name, value) |
#define | parseStringSilent(name, value) |
#define CMD_PARSE_BEGIN | ( | i, | |
count | |||
) |
{\ int c=i;\ while (c<count){\ bool recognized=false;
Definition at line 60 of file commandline.h.
#define CMD_PARSE_BEGIN_SILENT | ( | i, | |
count | |||
) |
{\ int c=i;\ while (c<count){\ bool recognized=false;
Definition at line 73 of file commandline.h.
#define CMD_PARSE_END |
if (!recognized)\ cout << "COMMAND LINE: parameter " << argv[c] << " not recognized" << endl;\ c++;\ }\ }
Definition at line 66 of file commandline.h.
#define CMD_PARSE_END_SILENT |
c++;\ }\ }
Definition at line 79 of file commandline.h.
#define parseDouble | ( | name, | |
value | |||
) |
if (!strcmp(argv[c],name) && c<argc-1){\ c++;\ value=atof(argv[c]);\ cout << name << "=" << value << endl;\ recognized=true;\ }\
Definition at line 44 of file commandline.h.
#define parseDoubleSilent | ( | name, | |
value | |||
) |
if (!strcmp(argv[c],name) && c<argc-1){\ c++;\ value=atof(argv[c]);\ recognized=true;\ }\
Definition at line 99 of file commandline.h.
#define parseFlag | ( | name, | |
value | |||
) |
if (!strcmp(argv[c],name)){\ value=true;\ cout << name << " on"<< endl;\ recognized=true;\ }\
Definition at line 28 of file commandline.h.
#define parseFlagSilent | ( | name, | |
value | |||
) |
if (!strcmp(argv[c],name)){\ value=true;\ recognized=true;\ }\
Definition at line 85 of file commandline.h.
#define parseInt | ( | name, | |
value | |||
) |
if (!strcmp(argv[c],name) && c<argc-1){\ c++;\ value=atoi(argv[c]);\ cout << name << "=" << value << endl;\ recognized=true;\ }\
Definition at line 52 of file commandline.h.
#define parseIntSilent | ( | name, | |
value | |||
) |
if (!strcmp(argv[c],name) && c<argc-1){\ c++;\ value=atoi(argv[c]);\ recognized=true;\ }\
Definition at line 106 of file commandline.h.
#define parseString | ( | name, | |
value | |||
) |
if (!strcmp(argv[c],name) && c<argc-1){\ c++;\ value=argv[c];\ cout << name << "=" << value << endl;\ recognized=true;\ }\
Definition at line 35 of file commandline.h.
#define parseStringSilent | ( | name, | |
value | |||
) |
Definition at line 91 of file commandline.h.