[Lemon-commits] Alpar Juttner: Hide and privatize member functio...

Lemon HG hg at lemon.cs.elte.hu
Mon Mar 17 12:05:32 CET 2008


details:   http://lemon.cs.elte.hu/hg/lemon/rev/81e138275860
changeset: 87:81e138275860
user:      Alpar Juttner <alpar [at] cs.elte.hu>
date:      Thu Jan 24 17:25:31 2008 +0000
description:
	Hide and privatize member function funcOption()

diffstat:

1 file changed, 13 insertions(+), 11 deletions(-)
lemon/arg_parser.h |   24 +++++++++++++-----------

diffs (41 lines):

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 @@ namespace lemon {
     std::vector<OtherArg> _others_help;
     std::vector<std::string> _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 @@ namespace lemon {
     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



More information about the Lemon-commits mailing list