gravatar
alpar (Alpar Juttner)
alpar@cs.elte.hu
Hide and privatize member function funcOption()
0 1 0
default
1 file changed with 13 insertions and 11 deletions:
↑ Collapse diff ↑
Show white space 2 line context
... ...
@@ -106,2 +106,15 @@
106 106
    
107
    
108
  private:
109
    //Bind a function to an option.
110

	
111
    //\param name The name of the option. The leading '-' must be omitted.
112
    //\param help A help string.
113
    //\retval func The function to be called when the option is given. It
114
    //  must be of type "void f(void *)"
115
    //\param data Data to be passed to \c func
116
    ArgParser &funcOption(const std::string &name,
117
		    const std::string &help,
118
		    void (*func)(void *),void *data);
119
    
107 120
  public:
... ...
@@ -154,13 +167,2 @@
154 167
    
155
    ///Bind a function to an option.
156

	
157
    ///\param name The name of the option. The leading '-' must be omitted.
158
    ///\param help A help string.
159
    ///\retval func The function to be called when the option is given. It
160
    ///  must be of type "void f(void *)"
161
    ///\param data Data to be passed to \c func
162
    ArgParser &funcOption(const std::string &name,
163
		    const std::string &help,
164
		    void (*func)(void *),void *data);
165

	
166 168
    ///\name Options with an external strorage.
0 comments (0 inline)