Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
ecl
command_line
version_visitor.hpp
Go to the documentation of this file.
1
11
/*****************************************************************************
12
** Ifdefs
13
*****************************************************************************/
14
15
#ifndef TCLAP_VERSION_VISITOR_H
16
#define TCLAP_VERSION_VISITOR_H
17
18
#include "
cmd_line_interface.hpp
"
19
#include "
cmd_line_output.hpp
"
20
#include "
visitor.hpp
"
21
22
namespace
ecl
{
23
30
class
VersionVisitor:
public
Visitor
31
{
32
protected
:
33
37
CmdLineInterface*
_cmd
;
38
42
CmdLineOutput**
_out
;
43
44
public
:
45
51
VersionVisitor
( CmdLineInterface* cmd, CmdLineOutput** out )
52
:
Visitor
(), _cmd( cmd ), _out( out ) { }
53
58
void
visit
() { (*_out)->version(*_cmd); exit(0); }
59
60
};
61
62
};
// namespace ecl
63
64
65
#endif
ecl
ecl::VersionVisitor::_cmd
CmdLineInterface * _cmd
Definition:
version_visitor.hpp:37
ecl::VersionVisitor::visit
void visit()
ecl::VersionVisitor::_out
CmdLineOutput ** _out
Definition:
version_visitor.hpp:42
cmd_line_output.hpp
cmd_line_interface.hpp
visitor.hpp
ecl::Visitor::Visitor
Visitor()
ecl::VersionVisitor::VersionVisitor
VersionVisitor(CmdLineInterface *cmd, CmdLineOutput **out)
xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:38