BloombergLP::balcl::OptionInfo::OptionInfo

Constructors

Synopses

Declared in <balcl_optioninfo.h>

Create an OptionInfo with the specified tag, name, and description, with d_typeInfo, d_defaultInfo, and d_environmentVariableName default-constructed.

OptionInfo(
    std::string_view tag = "",
    std::string_view name = "",
    std::string_view description = "");
» more...

Create an OptionInfo with the specified tag, name, description, and typeInfo, with d_defaultInfo, and d_environmentVariableName default-constructed.

OptionInfo(
    std::string_view tag,
    std::string_view name,
    std::string_view description,
    TypeInfo const& typeInfo);
» more...

Create an OptionInfo with the specified tag, name, description, typeInfo, defaultInfo, and envVarName.

OptionInfo(
    std::string_view tag,
    std::string_view name,
    std::string_view description,
    TypeInfo const& typeInfo,
    OccurrenceInfo const& defaultInfo,
    std::string_view envVarName = "");
» more...

Parameters

NameDescription
tagtags (or "" for non-option argument)
nameaccessing name
descriptiondescription used in printing usage
typeInfotype and linked-variable information for the option value
defaultInfooccurrence information and optional default value
envVarNameenvironment variable name supplying a default value