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

demo/sdhoptions.h File Reference

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

#include <getopt.h>
#include <assert.h>
#include <iostream>
#include <string>
#include <sdh/sdh.h>
Include dependency graph for sdhoptions.h:
This graph shows which files directly or indirectly include this file:

Classes

class  cSDHOptions
 class for command line option parsing holding option parsing results More...

Defines

#define SDHUSAGE_DEFAULT   "general sdhcom_serial sdhcom_common sdhcom_esdcan sdhcom_peakcan sdhcom_cancommon sdhcom_tcp"
#define SDH_DEFAULT_TCP_ADR   "192.168.1.42"
#define SDH_DEFAULT_TCP_PORT   23
#define DSA_DEFAULT_TCP_PORT   13000

Detailed Description

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

General file information

Author:
Dirk Osswald
Date:
2008-05-05

Copyright

Copyright (c) 2008 SCHUNK GmbH & Co. KG



Define Documentation

#define DSA_DEFAULT_TCP_PORT   13000
#define SDH_DEFAULT_TCP_ADR   "192.168.1.42"
#define SDH_DEFAULT_TCP_PORT   23
#define SDHUSAGE_DEFAULT   "general sdhcom_serial sdhcom_common sdhcom_esdcan sdhcom_peakcan sdhcom_cancommon sdhcom_tcp"

string defining all the usage helptexts included by default

Bug:
When compiled with VCC then the macros WITH_ESD_CAN / WITH_PEAK_CAN used above are not available since these are defined in the VCC project settings of the SDHLibrary VCC-Project. Therefore the value of SDHUSAGE_DEFAULT is incorrect and thus the cSDHOptions will display an incomplete usage string when called with -h/--help.
Workaround: use the online help contained in the doxygen documentation: Online help of demonstration programs