Constructors
Synopses
Declared in <balcl_optionvalue.h>
Create a command‐line‐option value object in the unset state (i.e., OptionType::e_VOID == type()).
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.
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 specified type.
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.
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.
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);
Parameters
Name |
Description |
basicAllocator |
memory allocator; null uses the default |
value |
initial date value |
type |
option type for the value |
original |
object providing the value to copy |
Created with MrDocs