Macros
commandline.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

◆ CMD_PARSE_BEGIN

#define CMD_PARSE_BEGIN (   i,
  count 
)
Value:
{\
int c=i;\
while (c<count){\
bool recognized=false;

Definition at line 59 of file commandline.h.

◆ CMD_PARSE_BEGIN_SILENT

#define CMD_PARSE_BEGIN_SILENT (   i,
  count 
)
Value:
{\
int c=i;\
while (c<count){\
bool recognized=false;

Definition at line 72 of file commandline.h.

◆ CMD_PARSE_END

#define CMD_PARSE_END
Value:
if (!recognized)\
cout << "COMMAND LINE: parameter " << argv[c] << " not recognized" << endl;\
c++;\
}\
}

Definition at line 65 of file commandline.h.

◆ CMD_PARSE_END_SILENT

#define CMD_PARSE_END_SILENT
Value:
c++;\
}\
}

Definition at line 78 of file commandline.h.

◆ parseDouble

#define parseDouble (   name,
  value 
)
Value:
if (!strcmp(argv[c],name) && c<argc-1){\
c++;\
value=atof(argv[c]);\
cout << name << "=" << value << endl;\
recognized=true;\
}\

Definition at line 43 of file commandline.h.

◆ parseDoubleSilent

#define parseDoubleSilent (   name,
  value 
)
Value:
if (!strcmp(argv[c],name) && c<argc-1){\
c++;\
value=atof(argv[c]);\
recognized=true;\
}\

Definition at line 98 of file commandline.h.

◆ parseFlag

#define parseFlag (   name,
  value 
)
Value:
if (!strcmp(argv[c],name)){\
value=true;\
cout << name << " on"<< endl;\
recognized=true;\
}\

Definition at line 27 of file commandline.h.

◆ parseFlagSilent

#define parseFlagSilent (   name,
  value 
)
Value:
if (!strcmp(argv[c],name)){\
value=true;\
recognized=true;\
}\

Definition at line 84 of file commandline.h.

◆ parseInt

#define parseInt (   name,
  value 
)
Value:
if (!strcmp(argv[c],name) && c<argc-1){\
c++;\
value=atoi(argv[c]);\
cout << name << "=" << value << endl;\
recognized=true;\
}\

Definition at line 51 of file commandline.h.

◆ parseIntSilent

#define parseIntSilent (   name,
  value 
)
Value:
if (!strcmp(argv[c],name) && c<argc-1){\
c++;\
value=atoi(argv[c]);\
recognized=true;\
}\

Definition at line 105 of file commandline.h.

◆ parseString

#define parseString (   name,
  value 
)
Value:
if (!strcmp(argv[c],name) && c<argc-1){\
c++;\
value=argv[c];\
cout << name << "=" << value << endl;\
recognized=true;\
}\

Definition at line 34 of file commandline.h.

◆ parseStringSilent

#define parseStringSilent (   name,
  value 
)
Value:
if (!strcmp(argv[c],name) && c<argc-1){\
c++;\
value=argv[c];\
recognized=true;\
}\

Definition at line 90 of file commandline.h.

c
unsigned int c
Definition: gfs2stream.cpp:41


openslam_gmapping
Author(s): Cyrill Stachniss, Udo Frese, Giorgio Grisetti, Wolfram Burgard
autogenerated on Thu Oct 19 2023 02:25:51