Defines a class holding a named set of generic properties as strings.
#include <Mesh/DataStructures/properties.h>
|
QString | GetProperty (const QString &key) const |
|
bool | HasProperty (const QString &key) const |
|
void | RemoveProperty (const QString &key) |
| Removes the property key if it exists.
|
|
void | SetProperty (const QString &key, const QString &val) |
| Sets the key property to val.
|
|
void | SetProperty (const QString &key, double val) |
| Sets the key property to the string representation of val.
|
|
◆ GetProperty()
QString GetProperty |
( |
const QString & |
key | ) |
const |
- Returns
- The value of the key property, or an empty string if key is not currently stored.
◆ HasProperty()
bool HasProperty |
( |
const QString & |
key | ) |
const |
- Returns
- True if key is a currently stored property.
◆ RemoveProperty()
void RemoveProperty |
( |
const QString & |
key | ) |
|
◆ SetProperty() [1/2]
void SetProperty |
( |
const QString & |
key, |
|
|
const QString & |
val |
|
) |
| |
◆ SetProperty() [2/2]
void SetProperty |
( |
const QString & |
key, |
|
|
double |
val |
|
) |
| |