OST_COMMANDOPTIONWITHARG(3)
β¨ NAME β¨
ost::CommandOptionWithArg β a derived class of CommandOption for options that have a value associated with them π
This page is the manual for ost::CommandOptionWithArg(3), and bestie, it's lowkey a whole vibe.
π¦ SYNOPSIS π¦
#include <cmdoptns.h>
Inherits ost::CommandOption.
Inherited by ost::CommandOptionArg, ost::CommandOptionCollect, and ost::CommandOptionRest. (It's giving family tree, fr fr π)
πΈ Public Member Functions πΈ
CommandOptionWithArg (const char *inOptionName, const char *inOptionLetter, const char *inDescription, OptionType inOptionType, bool inRequired=false, CommandOption **ppNext=&defaultCommandOptionList)β theCommandOptionWithArgcontructor.virtual ~CommandOptionWithArg ()virtual void foundOption (CommandOptionParse *cop, const char *value=0)virtual void foundOption (CommandOptionParse *cop, const char **value, int num)virtual bool hasValue ()
π Public Attributes π
const char ** valuesβ Array of list of values collected for this option.int numValueβ Number of values in thevaluesarray.
π« Additional Inherited Members π«
(There's more where that came from β the inherited stuff lives on the base class page, iykyk.)
π DESCRIPTION π
Derived class of CommandOption for options that have a value associated with them. No cap, that's literally its whole job.
Classes CommandOptionRest and CommandOptionArg derive from this class. Periodt. π
πΈ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION πΈ
ost::CommandOptionWithArg::CommandOptionWithArg (const char * inOptionName, const char * inOptionLetter, const char * inDescription, OptionType inOptionType, bool inRequired = false, CommandOption ** ppNext = &defaultCommandOptionList)
CommandOptionWithArg contructor. Note the default values for required and ppNext β they're just sitting there being convenient, slay. β¨
Parameters
inOptionNameβ long option nameinOptionLetterβ short letter nameinDescriptionβ short description of the optioninOptionTypeβ the type of this optioninRequiredβtrueif option is requiredppNextβ the linked list header
virtual ost::CommandOptionWithArg::~CommandOptionWithArg () [virtual]
The destructor. It cleans up after itself, iconic behaviour honestly. π§Ή
π MEMBER FUNCTION DOCUMENTATION π
virtual void ost::CommandOptionWithArg::foundOption (CommandOptionParse * cop, const char ** value, int num) [virtual]
Reimplemented from ost::CommandOption.
virtual void ost::CommandOptionWithArg::foundOption (CommandOptionParse * cop, const char * value = 0) [virtual]
Reimplemented from ost::CommandOption.
virtual bool ost::CommandOptionWithArg::hasValue () [virtual]
Reimplemented from ost::CommandOption.
π MEMBER DATA DOCUMENTATION π
int ost::CommandOptionWithArg::numValue
Number of values in the values array.
Examples
cmdlineopt.cpp. π
const char** ost::CommandOptionWithArg::values
Array of list of values collected for this option.
Examples
cmdlineopt.cpp. π
π AUTHOR π
Generated automatically by Doxygen for GNU CommonC++ from the source code.
Okay that's the whole page, bestie β you ate that π
This was GNU CommonC++ content, dated Sun Dec 27 2020, for ost::Comma...tionWithArg(3). Go forth and parse those options, queen π«Άπ
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms