BloombergLP::balcl::CommandLine::CommandLine

Constructors

Synopses

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...

Parameters

NameDescription
originalcommand-line object to copy
basicAllocatormemory allocator (or 0 for the default)
specTableoption specification table (may be updated in place)
lengthnumber of entries in specTable
errorStreamstream to which construction errors are written