|
paludis Version 3.0.2
The one true package mangler
|
#include <args_group.hh>
Public Member Functions | |
| void | remove () |
| ArgsSection * | section () const |
| void | add (ArgsOption *const value) |
| void | remove (ArgsOption *const value) |
| const std::string & | name () const |
| const std::string & | description () const |
Iterate over our ArgsOptions. | |
| typedef WrappedForwardIterator< ConstIteratorTag, ArgsOption *const > | ConstIterator |
| ConstIterator | begin () const |
| ConstIterator | end () const |
Basic operations | |
| ArgsGroup (ArgsSection *s, const std::string &name, const std::string &description) | |
| ArgsGroup (const ArgsGroup &)=delete | |
| ArgsGroup & | operator= (const ArgsGroup &)=delete |
Contains a related group of command line arguments.
| void paludis::args::ArgsGroup::add | ( | ArgsOption *const | value | ) |
Add an ArgsOption instance (called by the ArgsOption constructor).
|
inline |
Fetch our description.
Referenced by remove().
|
inline |
Fetch our name.
Referenced by remove().
| void paludis::args::ArgsGroup::remove | ( | ) |
Remove this group from our section.
| void paludis::args::ArgsGroup::remove | ( | ArgsOption *const | value | ) |
Remove an ArgsOption instance (called by ArgsOption::remove). Calls ArgsGroup::remove() if that would leave us with no ArgsOptions.
References description(), and name().
|
inline |
Fetch our section.