BloombergLP::balcl::CommandLine::CommandLine

Create an object accepting the command-line options described by the specified (statically-initialized) specTable.

Synopsis

Declared in <balcl_commandline.h>

template<int LENGTH>
CommandLine(
    OptionInfo const(& specTable)[],
    std::ostream& errorStream,
    bslma::Allocator* basicAllocator = 0);

Description

Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless specTable satisfies the isValidOptionSpecificationTable function. Note that an appropriate error message is written to the specified errorStream.

Parameters

NameDescription
specTablestatically-initialized option specification table
errorStreamstream to which construction errors are written
basicAllocatormemory allocator (or 0 for the default)