Constructors
Declared in <balcl_commandline.h>
Create a command-line object having the value of the specified original command line.
CommandLine(
CommandLine const& original,
bslma::Allocator* basicAllocator = 0);
» more...
Same as the overload taking const OptionInfo (&)[LENGTH], but accepts a non-const specTable whose entries may be updated in place.
template<int LENGTH>
explicit
CommandLine(
OptionInfo(& specTable)[],
bslma::Allocator* basicAllocator = 0);
» more...
Create an object accepting the command-line options described by the specified (statically-initialized) specTable.
template<int LENGTH>
explicit
CommandLine(
OptionInfo const(& specTable)[],
bslma::Allocator* basicAllocator = 0);
» more...
Create an object accepting the command-line options described by the specified specTable of the specified length.
CommandLine(
OptionInfo const* specTable,
int length,
bslma::Allocator* basicAllocator = 0);
» more...
Same as the preceding overload, but accepts a non-const specTable whose entries may be updated in place.
template<int LENGTH>
CommandLine(
OptionInfo(& specTable)[],
std::ostream& errorStream,
bslma::Allocator* basicAllocator = 0);
» more...
Create an object accepting the command-line options described by the specified (statically-initialized) specTable.
template<int LENGTH>
CommandLine(
OptionInfo const(& specTable)[],
std::ostream& errorStream,
bslma::Allocator* basicAllocator = 0);
» more...
Create an object accepting the command-line options described by the specified specTable of the specified length.
CommandLine(
OptionInfo const* specTable,
int length,
std::ostream& errorStream,
bslma::Allocator* basicAllocator = 0);
» more...
| Name | Description |
|---|---|
| original | command-line object to copy |
| basicAllocator | memory allocator (or 0 for the default) |
| specTable | option specification table (may be updated in place) |
| length | number of entries in specTable |
| errorStream | stream to which construction errors are written |