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