Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
third-party
tclap
include
tclap
VersionVisitor.h
Go to the documentation of this file.
1
// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-
2
3
/******************************************************************************
4
*
5
* file: VersionVisitor.h
6
*
7
* Copyright (c) 2003, 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
24
#ifndef TCLAP_VERSION_VISITOR_H
25
#define TCLAP_VERSION_VISITOR_H
26
27
#include <
tclap/CmdLineInterface.h
>
28
#include <
tclap/CmdLineOutput.h
>
29
#include <
tclap/Visitor.h
>
30
31
namespace
TCLAP
{
32
37
class
VersionVisitor
:
public
Visitor
38
{
39
private
:
43
VersionVisitor
(
const
VersionVisitor
& rhs);
44
VersionVisitor
&
operator=
(
const
VersionVisitor
& rhs);
45
46
protected
:
47
51
CmdLineInterface
*
_cmd
;
52
56
CmdLineOutput
**
_out
;
57
58
public
:
59
65
VersionVisitor
(
CmdLineInterface
*
cmd
,
CmdLineOutput
**
out
)
66
:
Visitor
(), _cmd( cmd ), _out( out ) { }
67
72
void
visit
() {
73
(*_out)->version(*_cmd);
74
throw
ExitException
(0);
75
}
76
77
};
78
79
}
80
81
#endif
TCLAP::VersionVisitor::_cmd
CmdLineInterface * _cmd
Definition:
VersionVisitor.h:51
CmdLineOutput.h
TCLAP::VersionVisitor::_out
CmdLineOutput ** _out
Definition:
VersionVisitor.h:56
TCLAP::ExitException
Definition:
ArgException.h:187
TCLAP::VersionVisitor::operator=
VersionVisitor & operator=(const VersionVisitor &rhs)
CmdLineInterface.h
TCLAP::VersionVisitor::VersionVisitor
VersionVisitor(const VersionVisitor &rhs)
TCLAP::VersionVisitor
Definition:
VersionVisitor.h:37
TCLAP::Visitor
Definition:
Visitor.h:31
TCLAP::VersionVisitor::visit
void visit()
Definition:
VersionVisitor.h:72
TCLAP::CmdLineInterface
Definition:
CmdLineInterface.h:43
test-fw-updater.cmd
list cmd
Definition:
test-fw-updater.py:113
TCLAP::VersionVisitor::VersionVisitor
VersionVisitor(CmdLineInterface *cmd, CmdLineOutput **out)
Definition:
VersionVisitor.h:65
Visitor.h
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:50:14