|
QtPass 2.0.0
Developer documentation
|
The NamedValues class is mostly a list of NamedValue but also has a method to take a specific NamedValue pair out of the list. More...
#include <filecontent.h>
Public Member Functions | |
| NamedValues () | |
| Construct an empty list. | |
| NamedValues (std::initializer_list< NamedValue > values) | |
| Construct a NamedValues list from an initializer list. | |
| auto | takeValue (const QString &name) -> QString |
| Remove and return the value for the named field. | |
| auto | takeNamedValue (const QString &name) -> NamedValue |
| Remove and return the named field, its original line included. | |
The NamedValues class is mostly a list of NamedValue but also has a method to take a specific NamedValue pair out of the list.
Definition at line 58 of file filecontent.h.
|
default |
Construct an empty list.
| NamedValues::NamedValues | ( | std::initializer_list< NamedValue > | values | ) |
Construct a NamedValues list from an initializer list.
| values | Initial set of NamedValue pairs. |
Definition at line 317 of file filecontent.cpp.
| auto NamedValues::takeNamedValue | ( | const QString & | name | ) | -> NamedValue |
Remove and return the named field, its original line included.
| name | Field name to look up and remove. |
Definition at line 324 of file filecontent.cpp.
| auto NamedValues::takeValue | ( | const QString & | name | ) | -> QString |
Remove and return the value for the named field.
| name | Field name to look up and remove. |
Definition at line 320 of file filecontent.cpp.