version_visitor.hpp
Go to the documentation of this file.
00001 
00011 /*****************************************************************************
00012 ** Ifdefs
00013 *****************************************************************************/
00014 
00015 #ifndef TCLAP_VERSION_VISITOR_H
00016 #define TCLAP_VERSION_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 VersionVisitor: public Visitor
00031 {
00032         protected:
00033 
00037                 CmdLineInterface* _cmd;
00038 
00042                 CmdLineOutput** _out;
00043 
00044         public:
00045 
00051                 VersionVisitor( CmdLineInterface* cmd, CmdLineOutput** out )
00052                                 : Visitor(), _cmd( cmd ), _out( out ) { }
00053 
00058                 void visit() { (*_out)->version(*_cmd); exit(0); }
00059 
00060 };
00061 
00062 }; // namespace ecl
00063 
00064 
00065 #endif


ecl_command_line
Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Thu Jan 2 2014 11:12:37