SDHLibrary-CPP 0.0.2.10SCHUNK GmbH & Co. KG
C++ access library for SCHUNK Dextrous Hand SDH

demo/sdhoptions.cpp File Reference

Implementation of a class to parse common SDH related command line options. More...

#include <getopt.h>
#include <assert.h>
#include <iostream>
#include <fstream>
#include "sdh/sdh.h"
#include "sdh/sdhlibrary_settings.h"
#include "sdh/release.h"
#include "sdh/dsa.h"
#include "sdhoptions.h"
Include dependency graph for sdhoptions.cpp:

Defines

#define XSTRINGIFY(_x)   STRINGIFY(_x)
#define STRINGIFY(_s)   #_s
 helper macro for XSTRINGIFY, see there

Variables

static char const * sdhusage_general = " \n"
 general options
static char const * sdhusage_sdhcom_serial = " \n"
 RS232 communication options.
static char const * sdhusage_sdhcom_common = " Use BAUDRATE in bit/s for communication. Default=115200 Bit/s for RS232\n"
 Common communication options.
static char const * sdhusage_sdhcom_esdcan = ""
 ESD CAN communication options.
static char const * sdhusage_sdhcom_peakcan = ""
 PEAK CAN communication options.
static char const * sdhusage_sdhcom_cancommon = ""
 Common CAN communication options.
static char const * sdhusage_sdhcom_tcp = " \n"
 TCP communication options.
static char const * sdhusage_sdhother = " \n"
 Other options.
static char const * sdhusage_dsacom = " \n"
 DSA (tactile sensor) communication options.
static char const * sdhusage_dsaother = " This option can be used multiple times.\n"
 DSA (tactile sensor) other options.
static char const * sdhusage_dsaadjust = " \n"
 DSA (tactile sensor) adjustment options.
static char const * sdhoptions_short_options = "hvVd:l:p:T:b:cn:e:w:RFt:q:r:fSCM:"
 short command line options accepted by the cSDHOptions class
static struct option sdhoptions_long_options []
 long command line options accepted by the cSDHOptions class

Detailed Description

Implementation of a class to parse common SDH related command line options.

Author:
Dirk Osswald
Date:
2008-05-05

Copyright

Copyright (c) 2008 SCHUNK GmbH & Co. KG



Define Documentation

#define STRINGIFY (   _s)    #_s

helper macro for XSTRINGIFY, see there

#define XSTRINGIFY (   _x)    STRINGIFY(_x)

macro for stringification of _x

allows to stringify the value of a macro:

   #define foo 4

   STRINGIFY( foo ) // yields "foo"
   XSTRINGIFY( foo ) // yields "4"

Variable Documentation

struct option sdhoptions_long_options[] [static]

long command line options accepted by the cSDHOptions class

char const* sdhoptions_short_options = "hvVd:l:p:T:b:cn:e:w:RFt:q:r:fSCM:" [static]

short command line options accepted by the cSDHOptions class

char const* sdhusage_dsaadjust = " \n" [static]

DSA (tactile sensor) adjustment options.

char const* sdhusage_dsacom = " \n" [static]

DSA (tactile sensor) communication options.

char const* sdhusage_dsaother = " This option can be used multiple times.\n" [static]

DSA (tactile sensor) other options.

char const* sdhusage_general = " \n" [static]

general options

char const* sdhusage_sdhcom_cancommon = "" [static]

Common CAN communication options.

char const* sdhusage_sdhcom_common = " Use BAUDRATE in bit/s for communication. Default=115200 Bit/s for RS232\n" [static]

Common communication options.

char const* sdhusage_sdhcom_esdcan = "" [static]

ESD CAN communication options.

char const* sdhusage_sdhcom_peakcan = "" [static]

PEAK CAN communication options.

char const* sdhusage_sdhcom_serial = " \n" [static]

RS232 communication options.

char const* sdhusage_sdhcom_tcp = " \n" [static]

TCP communication options.

char const* sdhusage_sdhother = " \n" [static]

Other options.