This 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.
Declared in <bslfmt_testspecificationgenerator.h>
class TestSpecificationGenerator_Option;
| Name | Description |
|---|---|
TestSpecificationGenerator_Option [constructor] | Create an object, having no successor in the list of generator options. |
~TestSpecificationGenerator_Option [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. |
| Name | Description |
|---|---|
TestSpecificationGenerator_BoolOption | This class is an implementation of the TestSpecificationGenerator_Option for options that have only two states: they are either present or not. |
TestSpecificationGenerator_TypedOption | This class is an implementation of the TestSpecificationGenerator_Option for options that iterate through the states specified by the set of t_TYPE (template parameter) values. The state is determined by the interaction of two class fields: a flag indicating the presence of the option and a specific value for the option. If the flag indicates that the option is not present, the value of the second field is ignored. |