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 
38 
43 
44  public:
45 
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
cmd_line_output.hpp
TCLAP command line argument parser classes.
cmd_line_interface.hpp
TCLAP command line argument parser classes.
ecl::VersionVisitor::visit
void visit()
Definition: version_visitor.hpp:62
visitor.hpp
TCLAP command line argument parser classes.
ecl::VersionVisitor::_cmd
CmdLineInterface * _cmd
Definition: version_visitor.hpp:41
ecl::VersionVisitor::VersionVisitor
VersionVisitor(CmdLineInterface *cmd, CmdLineOutput **out)
Definition: version_visitor.hpp:55
ecl::Visitor
TClap class indirectly used to define the interface for visitors.
Definition: visitor.hpp:27
ecl::VersionVisitor::_out
CmdLineOutput ** _out
Definition: version_visitor.hpp:46
ecl::CmdLineInterface
Managing interface for The base class that manages the command line definition and passes along the p...
Definition: cmd_line_interface.hpp:38
ecl::CmdLineOutput
Tclap class indirectly used by children for standardising outputs.
Definition: cmd_line_output.hpp:37
ecl


ecl_command_line
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:13