This class is an allocator‐aware, in‐core descriptor for a command‐line option.
Synopsis
Declared in <balcl_option.h>
class Option;
Description
This class, constructible from and implicitly convertible to OptionInfo, provides the same attributes, but also uses a bslma::Allocator and thus can be stored in a container. A minor subtlety arises in the name attribute, whereby any suffix starting with an = sign in the name attribute of a OptionInfo is removed in order to derive the name of the Option.
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this command‐line option object. |
Assignment operators |
|
Return the allocator used by this object to supply memory. |
|
Return whether this option is a flag, option, or non‐option argument. |
|
Return the description of this option. |
|
Return the environment variable name of this option. |
|
Return |
|
Return whether the description is valid for this option. |
|
Return whether the specified |
|
Return |
|
Return |
|
Return the long tag for this option, or 0 if none. |
|
Return the name of this option. |
|
Return a |
|
Format this object to the specified output |
|
Return the short tag character for this option, or 0 if none. |
|
Return the tag string provided to this object at construction. Note that this string is empty if this is a non‐option argument. |
|
Return a |
|
|
Nested trait declaration for |
Return a |
Non-Member Functions
Name |
Description |
Return |
|
Return |
Created with MrDocs