help_visitor.hpp
Go to the documentation of this file.
1 
11 /*****************************************************************************
12 ** Ifdefs
13 *****************************************************************************/
14 
15 #ifndef TCLAP_HELP_VISITOR_H
16 #define TCLAP_HELP_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 HelpVisitor: public Visitor
31 {
32  protected:
33 
38 
43 
44  public:
45 
52  : Visitor(), _cmd( cmd ), _out( out ) { }
53 
58  void visit() { (*_out)->usage(*_cmd); exit(0); }
59 
60 };
61 
62 }; // namespace ecl
63 
64 
65 #endif
cmd_line_output.hpp
TCLAP command line argument parser classes.
ecl::HelpVisitor::HelpVisitor
HelpVisitor(CmdLineInterface *cmd, CmdLineOutput **out)
Definition: help_visitor.hpp:55
ecl::HelpVisitor::visit
void visit()
Definition: help_visitor.hpp:62
cmd_line_interface.hpp
TCLAP command line argument parser classes.
ecl::HelpVisitor::_out
CmdLineOutput ** _out
Definition: help_visitor.hpp:46
visitor.hpp
TCLAP command line argument parser classes.
ecl::Visitor
TClap class indirectly used to define the interface for visitors.
Definition: visitor.hpp:27
ecl::HelpVisitor::_cmd
CmdLineInterface * _cmd
Definition: help_visitor.hpp:41
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 Sun Aug 2 2020 03:12:03