BloombergLP::balcl::CommandLineOptionsHandle

This class provides access to the parsed options (if any) of its creating CommandLine object.

Synopsis

Declared in <balcl_commandline.h>

class CommandLineOptionsHandle;

Description

The behavior is undefined if any of the methods of this class (accessors all) are invoked after a subsequent invocation of the parse method of the creating object or after the destruction of the creating object.

Member Functions

NameDescription
index Return the position of the option having the specified name.
name Return the name of the option at the specified index.
numOptions Return the number of parsed options.
the the overloads
theBool Return the value of the option having the specified name.
theChar Return the value of the option having the specified name.
theCharArray Return a const reference to the value of the option having the specified name.
theDate Return a const reference to the value of the option having the specified name.
theDateArray Return a const reference to the value of the option having the specified name.
theDatetime Return a const reference to the value of the option having the specified name.
theDatetimeArray Return a const reference to the value of the option having the specified name.
theDouble Return the value of the option having the specified name.
theDoubleArray Return a const reference to the value of the option having the specified name.
theInt Return the value of the option having the specified name.
theInt64 Return the value of the option having the specified name.
theInt64Array Return a const reference to the value of the option having the specified name.
theIntArray Return a const reference to the value of the option having the specified name.
theString Return a const reference to the value of the option having the specified name.
theStringArray Return a const reference to the value of the option having the specified name.
theTime Return a const reference to the value of the option having the specified name.
theTimeArray Return a const reference to the value of the option having the specified name.
type type overloads
value value overloads

Friends

NameDescription
BloombergLP::balcl::operator!=Return true if the specified lhs and rhs do not have the same value, and false otherwise.
BloombergLP::balcl::operator==Return true if the specified lhs and rhs have the same value, and false otherwise.
BloombergLP::balcl::CommandLineThis value-semantic class parses, validates, and provides access to command-line arguments.