tclap 1.2.1

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

CmdLineOutput.h
Go to the documentation of this file.
1
2
3 /******************************************************************************
4 *
5 * file: CmdLineOutput.h
6 *
7 * Copyright (c) 2004, Michael E. Smoot
8 * All rights reverved.
9 *
10 * See the file COPYING in the top directory of this distribution for
11 * more information.
12 *
13 * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS
14 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19 * DEALINGS IN THE SOFTWARE.
20 *
21 *****************************************************************************/
22
23 #ifndef TCLAP_CMDLINEOUTPUT_H
24 #define TCLAP_CMDLINEOUTPUT_H
25
26 #include <string>
27 #include <vector>
28 #include <list>
29 #include <iostream>
30 #include <iomanip>
31 #include <algorithm>
32
33 namespace TCLAP {
34
35 class CmdLineInterface;
36 class ArgException;
37
41 class CmdLineOutput
42 {
43
44 public:
45
49 virtual ~CmdLineOutput() {}
50
55 virtual void usage(CmdLineInterface& c)=0;
56
61 virtual void version(CmdLineInterface& c)=0;
62
68 virtual void failure( CmdLineInterface& c,
69 ArgException& e )=0;
70
71 };
72
73 } //namespace TCLAP
74 #endif
TCLAP::ArgException
A simple class that defines and argument exception.
Definition: ArgException.h:36
TCLAP::CmdLineOutput::failure
virtual void failure(CmdLineInterface &c, ArgException &e)=0
Generates some sort of output for a failure.
TCLAP::CmdLineOutput::usage
virtual void usage(CmdLineInterface &c)=0
Generates some sort of output for the USAGE.
TCLAP::CmdLineOutput::~CmdLineOutput
virtual ~CmdLineOutput()
Virtual destructor.
Definition: CmdLineOutput.h:49
TCLAP::CmdLineInterface
The base class that manages the command line definition and passes along the parsing to the appropria...
Definition: CmdLineInterface.h:43
TCLAP::CmdLineOutput::version
virtual void version(CmdLineInterface &c)=0
Generates some sort of output for the version.
TCLAP
Definition: Arg.h:57
TCLAP::CmdLineOutput
The interface that any output object must implement.
Definition: CmdLineOutput.h:41