logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

ost::CommandOptionWithArg - Derived class of CommandOption for options that have a value associated with

Author

       Generated automatically by Doxygen for GNU CommonC++ from the source code.

GNU CommonC++                                    Sun Dec 27 2020                    ost::CommandOptionWithArg(3)

Constructor & Destructor Documentation

ost::CommandOptionWithArg::CommandOptionWithArg(constchar*inOptionName,constchar*inOptionLetter,constchar*inDescription,OptionTypeinOptionType,boolinRequired=false,CommandOption**ppNext=&defaultCommandOptionList)CommandOptionWithArg contructor. Note the default values for required and ppNext.

       ParametersinOptionName long option name
           inOptionLetter short letter name
           inDescription short description of the option
           inOptionType the type of this option
           inRequired true if option is required
           ppNext the linked list header

   virtualost::CommandOptionWithArg::~CommandOptionWithArg()[virtual]

Detailed Description

       Derived class of CommandOption for options that have a value associated with them.

       Classes CommandOptionRest and CommandOptionArg derive from this class.

Member Data Documentation

intost::CommandOptionWithArg::numValueNumber of values in the values array.

       Examplescmdlineopt.cpp.

   constchar**ost::CommandOptionWithArg::values
       Array of list of values collected for this option.

       Examplescmdlineopt.cpp.

Member Function Documentation

virtualvoidost::CommandOptionWithArg::foundOption(CommandOptionParse*cop,constchar**value,intnum)[virtual]
       Reimplemented from ost::CommandOption.

   virtualvoidost::CommandOptionWithArg::foundOption(CommandOptionParse*cop,constchar*value=0)[virtual]
       Reimplemented from ost::CommandOption.

   virtualboolost::CommandOptionWithArg::hasValue()[virtual]
       Reimplemented from ost::CommandOption.

Name

       ost::CommandOptionWithArg - Derived class of CommandOption for options that have a value associated with
       them.

Synopsis

       #include <cmdoptns.h>

       Inherits ost::CommandOption.

       Inherited by ost::CommandOptionArg, ost::CommandOptionCollect, and ost::CommandOptionRest.

   PublicMemberFunctionsCommandOptionWithArg (const char *inOptionName, const char *inOptionLetter, const char *inDescription,
           OptionType inOptionType, bool inRequired=false, CommandOption **ppNext=&defaultCommandOptionList)
           CommandOptionWithArg contructor.
       virtual ~CommandOptionWithArg ()
       virtual void foundOption (CommandOptionParse *cop, const char *value=0)
       virtual void foundOption (CommandOptionParse *cop, const char **value, int num)
       virtual bool hasValue ()

   PublicAttributes
       const char ** values
           Array of list of values collected for this option.
       int numValueNumber of values in the values array.

   AdditionalInheritedMembers

See Also