# HG changeset patch # User Alpar Juttner # Date 1201195531 0 # Node ID 81e138275860c55ce3ae9cf9a3ab7dd16e61cee2 # Parent eba5222bb6f5d196cc1409aa911a33eadff19a4c Hide and privatize member function funcOption() diff -r eba5222bb6f5 -r 81e138275860 lemon/arg_parser.h --- a/lemon/arg_parser.h Tue Jan 22 16:03:41 2008 +0000 +++ b/lemon/arg_parser.h Thu Jan 24 17:25:31 2008 +0000 @@ -103,6 +103,19 @@ std::vector _others_help; std::vector _file_args; std::string _command_name; + + + private: + //Bind a function to an option. + + //\param name The name of the option. The leading '-' must be omitted. + //\param help A help string. + //\retval func The function to be called when the option is given. It + // must be of type "void f(void *)" + //\param data Data to be passed to \c func + ArgParser &funcOption(const std::string &name, + const std::string &help, + void (*func)(void *),void *data); public: @@ -151,17 +164,6 @@ ArgParser &stringOption(const std::string &name, const std::string &help, std::string value="", bool obl=false); - - ///Bind a function to an option. - - ///\param name The name of the option. The leading '-' must be omitted. - ///\param help A help string. - ///\retval func The function to be called when the option is given. It - /// must be of type "void f(void *)" - ///\param data Data to be passed to \c func - ArgParser &funcOption(const std::string &name, - const std::string &help, - void (*func)(void *),void *data); ///\name Options with an external strorage. ///Using this functions, the value of the option will be directly written