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
CmdLineInterface * _cmd
CmdLineOutput ** _out
VersionVisitor(CmdLineInterface *cmd, CmdLineOutput **out)


xbot_driver
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:27:38