|
|
| Group (const std::string &help_=std::string(), const std::function< bool(const Group &)> &validator_=Validators::DontCare, Options options_={}) |
| | If help is empty, this group will not be printed in help output.
|
| |
|
| Group (Group &group_, const std::string &help_=std::string(), const std::function< bool(const Group &)> &validator_=Validators::DontCare, Options options_={}) |
| | If help is empty, this group will not be printed in help output.
|
| |
|
void | Add (Base &child) |
| | Append a child to this Group.
|
| |
|
const std::vector< Base * > & | Children () const |
| | Get all this group's children.
|
| |
| virtual FlagBase * | Match (const EitherFlag &flag) override |
| | Return the first FlagBase that matches flag, or nullptr.
|
| |
| virtual std::vector< FlagBase * > | GetAllFlags () override |
| |
| virtual void | Validate (const std::string &shortPrefix, const std::string &longPrefix) const override |
| |
| virtual PositionalBase * | GetNextPositional () override |
| | Get the next ready positional, or nullptr if there is none.
|
| |
| virtual bool | HasFlag () const override |
| | Get whether this has any FlagBase children.
|
| |
| virtual bool | HasPositional () const override |
| | Get whether this has any PositionalBase children.
|
| |
| virtual bool | HasCommand () const override |
| | Get whether this has any Command children.
|
| |
|
std::vector< Base * >::size_type | MatchedChildren () const |
| | Count the number of matched children this group has.
|
| |
|
std::vector< Base * > | GetMatchedChildren () const |
| | Get the list of children which were matched.
|
| |
| template<typename ChildType > |
| std::vector< ChildType * > | GetFilteredChildren (bool matching=false) const |
| | Gets the children which are a certain type.
|
| |
| virtual bool | Matched () const noexcept override |
| | Whether or not this group matches validation.
|
| |
|
bool | Get () const |
| | Get validation.
|
| |
| virtual std::vector< std::tuple< std::string, std::string, unsigned > > | GetDescription (const HelpParams ¶ms, const unsigned int indent) const override |
| | Get all the child descriptions for help generation.
|
| |
| virtual std::vector< std::string > | GetProgramLine (const HelpParams ¶ms) const override |
| | Get the names of positional parameters.
|
| |
| virtual std::vector< Command * > | GetCommands () override |
| |
| virtual bool | IsGroup () const override |
| |
| virtual void | Reset () noexcept override |
| |
| void | SignalDetectDuplicates () |
| | Sends a signal to the root of the tree to begin checking for duplicates.
|
| |
| void | DetectDuplicateFlags () |
| | Detect duplicate flags.
|
| |
|
void | DetectDuplicateFlags (std::unordered_set< char > &usedShortFlags, std::unordered_set< std::string > &usedLongFlags) |
| | Used by parameterless DetectDuplicateFlags.
|
| |
|
| Base (const std::string &help_, Options options_={}) |
| |
|
Options | GetOptions () const noexcept |
| |
|
bool | IsRequired () const noexcept |
| |
|
| operator bool () const noexcept |
| |
|
virtual std::vector< std::tuple< std::string, std::string, unsigned > > | GetDescription (const HelpParams &, const unsigned indentLevel) const |
| |
|
virtual bool | IsFlag () const |
| |
|
void | KickOut (bool kickout_) noexcept |
| | Sets a kick-out value for building subparsers.
|
| |
|
bool | KickOut () const noexcept |
| | Gets the kick-out value for building subparsers.
|
| |
Class for all kinds of validating groups, including ArgumentParser.