/****************************************************************************** ** ** mycopy4_clp.h ** ** Thu Oct 4 20:09:52 2007 ** Linux 2.6.19 (#1 Sun Jan 21 11:52:23 CET 2007) i686 ** linux@mgpc (Michael Geng) ** ** Header file for command line parser class ** ** Automatically created by genparse v0.7.1 ** ** See http://genparse.sourceforge.net for details and updates ** ******************************************************************************/ #ifndef CMDLINE_H #define CMDLINE_H #include #include #include "mycopy4.h" /*---------------------------------------------------------------------------- ** ** class Cmdline ** ** command line parser class ** **--------------------------------------------------------------------------*/ class Cmdline { private: /* parameters */ int _i; std::string _o; bool _h; bool _v; /* other stuff to keep track of */ std::string _program_name; int _optind; public: /* constructor and destructor */ Cmdline (int, char **) throw (std::string); ~Cmdline (){} /* usage function */ void usage (int status); /* return next (non-option) parameter */ int next_param () { return _optind; } /* callback functions */ bool my_callback (); bool outfile_cb (); int i () { return _i; } std::string o () { return _o; } bool h () { return _h; } bool v () { return _v; } }; #endif