Determine an attribute value of an object within a librepcb::Project.
More...
#include <projectattributelookup.h>
|
static bool | query (const Project &project, const QString &key, QString &value) noexcept |
|
static bool | query (const AssemblyVariant &av, const Circuit &circuit, const QString &key, QString &value) noexcept |
|
static bool | query (const ComponentInstance &cmp, const QString &key, QString &value) noexcept |
|
static bool | query (const Schematic &schematic, const QString &key, QString &value) noexcept |
|
static bool | query (const Board &board, const QString &key, QString &value) noexcept |
|
static bool | query (const SI_Symbol &symbol, const QString &key, QString &value) noexcept |
|
static bool | query (const BI_Device &device, const QString &key, QString &value) noexcept |
|
static bool | query (const Part &part, const QString &key, QString &value) noexcept |
|
Determine an attribute value of an object within a librepcb::Project.
Provides access to built-in and user-defined attributes (librepcb::Attribute) of objects within a project (e.g. symbols).
Please read the documentation about the Attributes System to get an idea how the Attributes System works in detail.
Usage:
- Call the constructor with passing the object to query attributes from.
- Call operator()() to get the value of a specific attribute key.
- See also
- librepcb::AttributeSubstitutor
-
Attributes System
◆ LookupFunction
◆ ProjectAttributeLookup() [1/8]
◆ ProjectAttributeLookup() [2/8]
◆ ProjectAttributeLookup() [3/8]
◆ ProjectAttributeLookup() [4/8]
◆ ProjectAttributeLookup() [5/8]
◆ ProjectAttributeLookup() [6/8]
◆ ProjectAttributeLookup() [7/8]
◆ ProjectAttributeLookup() [8/8]
◆ ~ProjectAttributeLookup()
◆ operator()()
QString operator() |
( |
const QString & |
key | ) |
const |
|
noexcept |
Get the value of a specific attribute key.
- Parameters
-
- Returns
- Attribute value. A null (empty) QString is returned if the requested attribute does not exist.
◆ operator=()
◆ query() [1/8]
bool query |
( |
const Project & |
project, |
|
|
const QString & |
key, |
|
|
QString & |
value |
|
) |
| |
|
staticprivatenoexcept |
◆ query() [2/8]
◆ query() [3/8]
◆ query() [4/8]
bool query |
( |
const Schematic & |
schematic, |
|
|
const QString & |
key, |
|
|
QString & |
value |
|
) |
| |
|
staticprivatenoexcept |
◆ query() [5/8]
bool query |
( |
const Board & |
board, |
|
|
const QString & |
key, |
|
|
QString & |
value |
|
) |
| |
|
staticprivatenoexcept |
◆ query() [6/8]
bool query |
( |
const SI_Symbol & |
symbol, |
|
|
const QString & |
key, |
|
|
QString & |
value |
|
) |
| |
|
staticprivatenoexcept |
◆ query() [7/8]
bool query |
( |
const BI_Device & |
device, |
|
|
const QString & |
key, |
|
|
QString & |
value |
|
) |
| |
|
staticprivatenoexcept |
◆ query() [8/8]
bool query |
( |
const Part & |
part, |
|
|
const QString & |
key, |
|
|
QString & |
value |
|
) |
| |
|
staticprivatenoexcept |
◆ mFunction
The documentation for this class was generated from the following files: