Main MRPT website
>
C++ reference for MRPT 1.4.0
mrpt
otherlibs
tclap
IgnoreRestVisitor.h
Go to the documentation of this file.
1
/* +---------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2016, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+---------------------------------------------------------------------------+ */
9
10
/******************************************************************************
11
*
12
* file: IgnoreRestVisitor.h
13
*
14
* Copyright (c) 2003, Michael E. Smoot .
15
* All rights reverved.
16
*
17
* See the file COPYING in the top directory of this distribution for
18
* more information.
19
*
20
* THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS
21
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26
* DEALINGS IN THE SOFTWARE.
27
*
28
*****************************************************************************/
29
30
31
#ifndef TCLAP_IGNORE_REST_VISITOR_H
32
#define TCLAP_IGNORE_REST_VISITOR_H
33
34
#include <
mrpt/otherlibs/tclap/Visitor.h
>
35
#include <
mrpt/otherlibs/tclap/Arg.h
>
36
37
namespace
TCLAP
{
38
39
/**
40
* A Vistor that tells the CmdLine to begin ignoring arguments after
41
* this one is parsed.
42
*/
43
class
IgnoreRestVisitor
:
public
Visitor
44
{
45
public
:
46
47
/**
48
* Constructor.
49
*/
50
IgnoreRestVisitor
() :
Visitor
() {}
51
52
/**
53
* Sets Arg::_ignoreRest.
54
*/
55
void
visit
() {
Arg::beginIgnoring
(); }
56
};
57
58
}
59
60
#endif
Arg.h
Visitor.h
TCLAP::Arg::beginIgnoring
static void beginIgnoring()
Begin ignoring arguments since the "--" argument was specified.
Definition:
Arg.h:178
TCLAP::IgnoreRestVisitor
A Vistor that tells the CmdLine to begin ignoring arguments after this one is parsed.
Definition:
IgnoreRestVisitor.h:44
TCLAP::IgnoreRestVisitor::IgnoreRestVisitor
IgnoreRestVisitor()
Constructor.
Definition:
IgnoreRestVisitor.h:50
TCLAP::IgnoreRestVisitor::visit
void visit()
Sets Arg::_ignoreRest.
Definition:
IgnoreRestVisitor.h:55
TCLAP::Visitor
A base class that defines the interface for visitors.
Definition:
Visitor.h:40
TCLAP
Definition:
Arg.h:44
Page generated by
Doxygen 1.9.6
for MRPT 1.4.0 SVN: at Wed Mar 22 06:31:24 UTC 2023