Visual Servoing Platform
version 3.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Examples
vpParseArgv.h
1
/****************************************************************************
2
*
3
* Declarations for Tk-related things that are visible
4
* outside of the Tk module itself.
5
*
6
* Copyright 1989-1992 Regents of the University of California.
7
* Permission to use, copy, modify, and distribute this
8
* software and its documentation for any purpose and without
9
* fee is hereby granted, provided that the above copyright
10
* notice appear in all copies. The University of California
11
* makes no representations about the suitability of this
12
* software for any purpose. It is provided "as is" without
13
* express or implied warranty.
14
*
15
* This file has been modified to be used only for argv parsing without
16
* reference to tk, tcl or X11. Base on tk.h from tk2.3
17
*
18
* Description:
19
* Command line argument parsing.
20
*
21
* Authors:
22
* Fabien Spindler (modification of the original version)
23
*
24
*****************************************************************************/
25
31
#ifndef vpParseArgv_h
32
#define vpParseArgv_h
33
34
35
#include <visp3/core/vpConfig.h>
36
#include <visp3/core/vpException.h>
37
132
class
VISP_EXPORT
vpParseArgv
133
{
134
public
:
138
typedef
enum
{
139
ARGV_CONSTANT
,
140
ARGV_INT
,
141
ARGV_LONG
,
142
ARGV_STRING
,
143
ARGV_REST
,
144
ARGV_FLOAT
,
145
ARGV_DOUBLE
,
146
ARGV_FUNC
,
147
ARGV_GENFUNC
,
148
ARGV_HELP
,
149
ARGV_END
150
} vpArgvType;
151
155
typedef
enum
{
156
ARGV_NO_DEFAULTS = 0x1,
157
ARGV_NO_LEFTOVERS = 0x2,
158
ARGV_NO_ABBREV = 0x4,
159
ARGV_DONT_SKIP_FIRST_ARG = 0x8,
160
ARGV_NO_PRINT = 0x10
161
} vpArgvFlags;
162
163
#ifndef DOXYGEN_SHOULD_SKIP_THIS
164
168
typedef
struct
{
169
const
char
*key;
171
vpArgvType type;
172
const
char
*src;
174
const
char
*dst;
176
const
char
*help;
177
} vpArgvInfo;
178
#endif
/* DOXYGEN_SHOULD_SKIP_THIS */
179
180
public
:
181
static
vpArgvInfo defaultTable[2];
182
static
bool
parse(
int
*argcPtr,
const
char
**argv,
183
vpArgvInfo *argTable,
int
flags);
184
static
int
parse(
int
argc,
const
char
** argv,
const
char
* validOpts,
const
char
** param);
185
186
private
:
187
static
void
printUsage (vpArgvInfo *argTable,
int
flags);
188
189
190
191
} ;
192
193
194
#endif
vpParseArgv::ARGV_DOUBLE
Definition:
vpParseArgv.h:145
vpParseArgv::ARGV_STRING
Definition:
vpParseArgv.h:142
vpParseArgv::ARGV_HELP
Definition:
vpParseArgv.h:148
vpParseArgv::ARGV_REST
Definition:
vpParseArgv.h:143
vpParseArgv::ARGV_FUNC
Definition:
vpParseArgv.h:146
vpParseArgv::ARGV_LONG
Definition:
vpParseArgv.h:141
vpParseArgv::ARGV_CONSTANT
Definition:
vpParseArgv.h:139
vpParseArgv::ARGV_GENFUNC
Definition:
vpParseArgv.h:147
vpParseArgv::ARGV_FLOAT
Definition:
vpParseArgv.h:144
vpParseArgv
Command line argument parsing.
Definition:
vpParseArgv.h:132
vpParseArgv::ARGV_INT
Definition:
vpParseArgv.h:140
modules
io
include
visp3
io
vpParseArgv.h
Generated by
1.8.9.1