tclap
1.2.5
include
tclap
CmdLineOutput.h
Go to the documentation of this file.
1
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-
2
3
4
5
/******************************************************************************
6
*
7
* file: CmdLineOutput.h
8
*
9
* Copyright (c) 2004, Michael E. Smoot
10
* Copyright (c) 2017, Google LLC
11
* All rights reserved.
12
*
13
* See the file COPYING in the top directory of this distribution for
14
* more information.
15
*
16
* THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS
17
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
* DEALINGS IN THE SOFTWARE.
23
*
24
*****************************************************************************/
25
26
#ifndef TCLAP_CMDLINEOUTPUT_H
27
#define TCLAP_CMDLINEOUTPUT_H
28
29
#include <string>
30
#include <vector>
31
#include <list>
32
#include <iostream>
33
#include <iomanip>
34
#include <algorithm>
35
36
namespace
TCLAP
{
37
38
class
CmdLineInterface;
39
class
ArgException;
40
44
class
CmdLineOutput
45
{
46
47
public
:
48
52
virtual
~CmdLineOutput
() {}
53
58
virtual
void
usage
(CmdLineInterface& c)=0;
59
64
virtual
void
version
(CmdLineInterface& c)=0;
65
71
virtual
void
failure
(
CmdLineInterface
& c,
72
ArgException
& e )=0;
73
74
};
75
76
}
//namespace TCLAP
77
#endif
TCLAP::CmdLineInterface
The base class that manages the command line definition and passes along the parsing to the appropria...
Definition:
CmdLineInterface.h:66
TCLAP::CmdLineOutput::~CmdLineOutput
virtual ~CmdLineOutput()
Virtual destructor.
Definition:
CmdLineOutput.h:71
TCLAP::CmdLineOutput::usage
virtual void usage(CmdLineInterface &c)=0
Generates some sort of output for the USAGE.
TCLAP::CmdLineOutput::version
virtual void version(CmdLineInterface &c)=0
Generates some sort of output for the version.
TCLAP::ArgException
A simple class that defines and argument exception.
Definition:
ArgException.h:56
TCLAP::CmdLineOutput::failure
virtual void failure(CmdLineInterface &c, ArgException &e)=0
Generates some sort of output for a failure.
TCLAP
Definition:
Arg.h:48
Generated by
1.8.17