#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <MultiSense/MultiSenseChannel.hh>
#include <getopt/getopt.h>
Go to the source code of this file.
|
int | main (int argc, char **argvPP) |
|
◆ CASE_FLT
#define CASE_FLT |
( |
|
str_, |
|
|
|
x_ |
|
) |
| |
Value: if (0 == strncasecmp(s, str_, strlen(str_))) { \
if (1 != sscanf(s, str_"%f\n", &tempf)) { \
fprintf(stderr, "malformed " str_ " %s\n",s); \
return false; \
} else { \
x_ = tempf; \
continue; \
}} \
◆ CASE_INT
#define CASE_INT |
( |
|
str_, |
|
|
|
x_ |
|
) |
| |
Value: if (0 == strncasecmp(s, str_, strlen(str_))) { \
if (1 != sscanf(s, str_"%d\n", &tempi)) { \
fprintf(stderr, "malformed " str_ " %s\n",s); \
return false; \
} else { \
x_ = tempi; \
continue; \
}} \
◆ CASE_PCB
Value: if (0 == strncasecmp(s, str_, strlen(str_))) { \
if (2 != sscanf(s, str_"%d %512[^\n]", &tempi, tempP)) { \
fprintf(stderr, "malformed " str_ " %s\n",s); \
return false; \
} else \
◆ CASE_STR
#define CASE_STR |
( |
|
str_, |
|
|
|
x_ |
|
) |
| |
Value: if (0 == strncasecmp(s, str_, strlen(str_))) { \
if (1 != sscanf(s, str_"%512[^\n]", tempP)) { \
fprintf(stderr, "malformed " str_ " %s\n",s); \
return false; \
} else { \
x_ = std::string(tempP); \
continue; \
}} \
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argvPP |
|
) |
| |