Classes | Macros
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:

Go to the source code of this file.

Classes

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

Macros

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

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


Definition in file sdhoptions.h.

Macro Definition Documentation

#define DSA_DEFAULT_TCP_PORT   13000

Definition at line 68 of file sdhoptions.h.

#define SDH_DEFAULT_TCP_ADR   "192.168.1.42"

Definition at line 66 of file sdhoptions.h.

#define SDH_DEFAULT_TCP_PORT   23

Definition at line 67 of file sdhoptions.h.

#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

Definition at line 64 of file sdhoptions.h.



sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Sun Aug 18 2019 03:42:20