COIN-OR::LEMON - Graph Library

Changeset 87:81e138275860 in lemon


Ignore:
Timestamp:
01/24/08 18:25:31 (12 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Hide and privatize member function funcOption()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/arg_parser.h

    r86 r87  
    104104    std::vector<std::string> _file_args;
    105105    std::string _command_name;
     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);
    106119   
    107120  public:
     
    152165                      const std::string &help,
    153166                      std::string value="", bool obl=false);
    154    
    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);
    165167
    166168    ///\name Options with an external strorage.
Note: See TracChangeset for help on using the changeset viewer.