help_visitor.hpp
Go to the documentation of this file.
00001 
00011 /*****************************************************************************
00012 ** Ifdefs
00013 *****************************************************************************/
00014 
00015 #ifndef TCLAP_HELP_VISITOR_H
00016 #define TCLAP_HELP_VISITOR_H
00017 
00018 #include "cmd_line_interface.hpp"
00019 #include "cmd_line_output.hpp"
00020 #include "visitor.hpp"
00021 
00022 namespace ecl {
00023 
00030 class HelpVisitor: public Visitor
00031 {
00032         protected:
00033 
00037                 CmdLineInterface* _cmd;
00038 
00042                 CmdLineOutput** _out;
00043 
00044         public:
00045 
00051                 HelpVisitor(CmdLineInterface* cmd, CmdLineOutput** out)
00052                                 : Visitor(), _cmd( cmd ), _out( out ) { }
00053 
00058                 void visit() { (*_out)->usage(*_cmd); exit(0); }
00059 
00060 };
00061 
00062 }; // namespace ecl
00063 
00064 
00065 #endif


ecl_command_line
Author(s): Daniel Stonier
autogenerated on Mon Jul 3 2017 02:21:07