BloombergLP::bslfmt::TestSpecificationGenerator_BoolOption

This class is an implementation of the TestSpecificationGenerator_Option for options that have only two states: they are either present or not.

Synopsis

Declared in <bslfmt_testspecificationgenerator.h>

class TestSpecificationGenerator_BoolOption
    : public TestSpecificationGenerator_Option

Base Classes

NameDescription
TestSpecificationGenerator_OptionThis class is a base class for TestSpecificationGenerator option nodes, which, when compiled into a list, represent the state of the generator. The payload and the process of changing this state are programmed into specific implementations of this interface. This class contains the basic functions of adding a new link to the options chain and finding the last link in the chain.

Member Functions

NameDescription
TestSpecificationGenerator_BoolOption [constructor]Create an object that displays its state through the specified value.
~TestSpecificationGenerator_BoolOption [destructor] [virtual]Destroy this object.
lastOption Return the pointer to the last item in the list of generator options (this object can also be one).
nextOption Return the pointer to the next item in the list of generator options if such an object exists and null otherwise..
nextState [virtual]Switch the state of this object to the next one.
setNextOption Set the specified nextOption as a successor in the list of generator options. Use the specified allocator to supply memory.