Macros | Functions
Legacy/DeviceInfoUtility/DeviceInfoUtility.cc File Reference
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <MultiSense/MultiSenseChannel.hh>
#include <getopt/getopt.h>
Include dependency graph for Legacy/DeviceInfoUtility/DeviceInfoUtility.cc:

Go to the source code of this file.

Macros

#define CASE_FLT(str_, x_)
 
#define CASE_INT(str_, x_)
 
#define CASE_PCB(str_)
 
#define CASE_STR(str_, x_)
 

Functions

int main (int argc, char **argvPP)
 

Macro Definition Documentation

◆ 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

#define CASE_PCB (   str_)
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; \
}} \

Function Documentation

◆ main()

int main ( int  argc,
char **  argvPP 
)


multisense_lib
Author(s):
autogenerated on Thu Apr 17 2025 02:49:09