Constructors
Synopses
Declared in <balcl_optionvalue.h>
Create a command‐line‐option value object in the unset state (i.e., OptionType::e_VOID == type()). Optionally specify a basicAllocator used to supply memory. If basicAllocator is not specified, the currently installed default allocator is used.
OptionValue();
Create a command‐line‐option value object in the unset state (i.e., OptionType::e_VOID == type()), using the specified basicAllocator to supply memory. Note that (atypically) this constructor disallows 0 for basicAllocator; invoking the constructor with 0 dispatches to the constructor overload that explicitly accepts an int value for its first argument (see below).
explicit
OptionValue(bslma::Allocator* basicAllocator);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bdlt::Date value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bdlt::Datetime value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the type corresponding to the specified type and, if OptionType::e_VOID != type, having the default value of that type. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
OptionValue(
OptionType::Enum type,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bsls::Types::Int64 value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bdlt::Time value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the type and value of the specified value. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
explicit
OptionValue(
bool value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
char value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
double value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
int value,
bslma::Allocator* basicAllocator = 0);
Create a OptionValue object having the same value as the specified original object. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
OptionValue(
OptionValue const& original,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bsl::string const& value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bsl::vector<bdlt::Date> const& value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the type and value of the specified value.
explicit
OptionValue(
bsl::vector<bdlt::Datetime> const& value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bsl::vector<bsls::Types::Int64> const& value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bsl::vector<bdlt::Time> const& value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bsl::vector<char> const& value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bsl::vector<double> const& value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bsl::vector<int> const& value,
bslma::Allocator* basicAllocator = 0);
Create a command‐line‐option value object having the specified value.
explicit
OptionValue(
bsl::vector<bsl::string> const& value,
bslma::Allocator* basicAllocator = 0);
Created with MrDocs