tclap: IgnoreRestVisitor.h Source File

tclap 1.2.5

IgnoreRestVisitor.h
Go to the documentation of this file.
1 // -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-
2
3
4 /******************************************************************************
5 *
6 * file: IgnoreRestVisitor.h
7 *
8 * Copyright (c) 2003, Michael E. Smoot .
9 * All rights reserved.
10 *
11 * See the file COPYING in the top directory of this distribution for
12 * more information.
13 *
14 * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 * DEALINGS IN THE SOFTWARE.
21 *
22 *****************************************************************************/
23
24
25 #ifndef TCLAP_IGNORE_REST_VISITOR_H
26 #define TCLAP_IGNORE_REST_VISITOR_H
27
28 #include <tclap/Visitor.h>
29 #include <tclap/Arg.h>
30
31 namespace TCLAP {
32
37 class IgnoreRestVisitor: public Visitor
38 {
39 public:
40
44 IgnoreRestVisitor() : Visitor() {}
45
49 void visit() { Arg::beginIgnoring(); }
50 };
51
52 }
53
54 #endif
Arg.h
Visitor.h
TCLAP::Arg::beginIgnoring
static void beginIgnoring()
Begin ignoring arguments since the "--" argument was specified.
Definition: Arg.h:191
TCLAP::IgnoreRestVisitor
A Visitor that tells the CmdLine to begin ignoring arguments after this one is parsed.
Definition: IgnoreRestVisitor.h:38
TCLAP::IgnoreRestVisitor::IgnoreRestVisitor
IgnoreRestVisitor()
Constructor.
Definition: IgnoreRestVisitor.h:44
TCLAP::IgnoreRestVisitor::visit
void visit()
Sets Arg::_ignoreRest.
Definition: IgnoreRestVisitor.h:49
TCLAP::Visitor
A base class that defines the interface for visitors.
Definition: Visitor.h:35
TCLAP
Definition: Arg.h:48