The implementation for finding parameters from a list with the correct ID.
More...
#include <ListParameterFinder.h>
The implementation for finding parameters from a list with the correct ID.
Definition at line 27 of file ListParameterFinder.h.
◆ ListParameterFinder() [1/2]
ListParameterFinder::ListParameterFinder |
( |
| ) |
|
◆ ~ListParameterFinder()
ListParameterFinder::~ListParameterFinder |
( |
| ) |
|
|
overridedefault |
◆ ListParameterFinder() [2/2]
◆ getAllParameterIds()
QStringList ListParameterFinder::getAllParameterIds |
( |
| ) |
const |
|
overridevirtual |
Gets all of the ids of parameters in the list.
- Returns
- A list containing all of the ids.
Implements ParameterFinder.
◆ getNumberOfParameters()
int ListParameterFinder::getNumberOfParameters |
( |
| ) |
const |
|
overridevirtualnoexcept |
Gets the number of parameters in the list.
- Returns
- The number of parameters in the list.
Implements ParameterFinder.
◆ getParameterWithID()
QSharedPointer< Parameter > ListParameterFinder::getParameterWithID |
( |
QStringView | parameterId | ) |
const |
|
overridevirtual |
Get the parameter with the given id.
- Parameters
-
[in] | parameterId | The id of the parameter being searched for. |
Implements ParameterFinder.
◆ hasId()
bool ListParameterFinder::hasId |
( |
QStringView | id | ) |
const |
|
overridevirtual |
Checks if a parameter with the given id exists.
- Parameters
-
[in] | id | The id to search for. |
- Returns
- True, if the parameter with the given id exists, otherwise false.
Implements ParameterFinder.
◆ nameForId()
QString ListParameterFinder::nameForId |
( |
QStringView | id | ) |
const |
|
overridevirtual |
Finds the name of the parameter with the given id.
- Parameters
-
[in] | id | The id to search for. |
- Returns
- The name of the parameter.
Implements ParameterFinder.
◆ operator=()
◆ registerParameterModel()
void ListParameterFinder::registerParameterModel |
( |
QAbstractItemModel const * | model | ) |
|
|
finalvirtual |
Registers a parameter model that can modify parameters for the finder.
- Parameters
-
[in] | model | The model to register. |
Implements ParameterFinder.
◆ setParameterList()
void ListParameterFinder::setParameterList |
( |
QSharedPointer< QList< QSharedPointer< Parameter > > > | parameterList | ) |
|
|
noexcept |
Set the parameter list.
- Parameters
-
[in] | parameterList | [Description]. |
◆ valueForId()
QString ListParameterFinder::valueForId |
( |
QStringView | id | ) |
const |
|
overridevirtual |
Finds the value of the parameter with the given id.
- Parameters
-
[in] | id | The id of the parameter to search for. |
- Returns
- The value of the parameter.
Implements ParameterFinder.
The documentation for this class was generated from the following file: