tclap  1.2.2
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 
38 {
39  public:
40 
45 
49  void visit() { Arg::beginIgnoring(); }
50 };
51 
52 }
53 
54 #endif
void visit()
Sets Arg::_ignoreRest.
A base class that defines the interface for visitors.
Definition: Visitor.h:34
static void beginIgnoring()
Begin ignoring arguments since the "--" argument was specified.
Definition: Arg.h:191
A Visitor that tells the CmdLine to begin ignoring arguments after this one is parsed.
IgnoreRestVisitor()
Constructor.
Definition: Arg.h:48