tclap 1.2.5
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
36namespace TCLAP {
37
38class CmdLineInterface;
39class ArgException;
40
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
A simple class that defines and argument exception.
Definition: ArgException.h:38
The base class that manages the command line definition and passes along the parsing to the appropria...
The interface that any output object must implement.
Definition: CmdLineOutput.h:45
virtual void usage(CmdLineInterface &c)=0
Generates some sort of output for the USAGE.
virtual void failure(CmdLineInterface &c, ArgException &e)=0
Generates some sort of output for a failure.
virtual void version(CmdLineInterface &c)=0
Generates some sort of output for the version.
virtual ~CmdLineOutput()
Virtual destructor.
Definition: CmdLineOutput.h:52
Definition: Arg.h:48