Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
third-party
tclap
include
tclap
HelpVisitor.h
Go to the documentation of this file.
1
2
/******************************************************************************
3
*
4
* file: HelpVisitor.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
#ifndef TCLAP_HELP_VISITOR_H
23
#define TCLAP_HELP_VISITOR_H
24
25
#include <
tclap/CmdLineInterface.h
>
26
#include <
tclap/CmdLineOutput.h
>
27
#include <
tclap/Visitor.h
>
28
29
namespace
TCLAP
{
30
35
class
HelpVisitor
:
public
Visitor
36
{
37
private
:
41
HelpVisitor
(
const
HelpVisitor
& rhs);
42
HelpVisitor
&
operator=
(
const
HelpVisitor
& rhs);
43
44
protected
:
45
49
CmdLineInterface
*
_cmd
;
50
54
CmdLineOutput
**
_out
;
55
56
public
:
57
63
HelpVisitor
(
CmdLineInterface
*
cmd
,
CmdLineOutput
**
out
)
64
:
Visitor
(), _cmd( cmd ), _out( out ) { }
65
70
void
visit
() { (*_out)->usage(*_cmd);
throw
ExitException
(0); }
71
72
};
73
74
}
75
76
#endif
TCLAP::HelpVisitor::_out
CmdLineOutput ** _out
Definition:
HelpVisitor.h:54
CmdLineOutput.h
TCLAP::ExitException
Definition:
ArgException.h:187
CmdLineInterface.h
TCLAP::HelpVisitor::operator=
HelpVisitor & operator=(const HelpVisitor &rhs)
TCLAP::HelpVisitor::visit
void visit()
Definition:
HelpVisitor.h:70
TCLAP::HelpVisitor::_cmd
CmdLineInterface * _cmd
Definition:
HelpVisitor.h:49
TCLAP::Visitor
Definition:
Visitor.h:31
TCLAP::CmdLineInterface
Definition:
CmdLineInterface.h:43
test-fw-updater.cmd
list cmd
Definition:
test-fw-updater.py:113
TCLAP::HelpVisitor
Definition:
HelpVisitor.h:35
TCLAP::HelpVisitor::HelpVisitor
HelpVisitor(CmdLineInterface *cmd, CmdLineOutput **out)
Definition:
HelpVisitor.h:63
Visitor.h
TCLAP::HelpVisitor::HelpVisitor
HelpVisitor(const HelpVisitor &rhs)
opencv_pointcloud_viewer.out
out
Definition:
opencv_pointcloud_viewer.py:264
TCLAP
Definition:
Arg.h:57
TCLAP::CmdLineOutput
Definition:
CmdLineOutput.h:41
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:16