20#ifndef LIBREPCB_CORE_PROJECTATTRIBUTELOOKUP_H
21#define LIBREPCB_CORE_PROJECTATTRIBUTELOOKUP_H
40class ComponentInstance;
75 std::shared_ptr<AssemblyVariant> av)
noexcept;
77 QPointer<const BI_Device> device,
78 std::shared_ptr<const Part> part)
noexcept;
80 std::shared_ptr<AssemblyVariant> av)
noexcept;
82 std::shared_ptr<AssemblyVariant> av)
noexcept;
84 std::shared_ptr<const Part> part,
85 std::shared_ptr<AssemblyVariant> av)
noexcept;
87 std::shared_ptr<const Part> part)
noexcept;
100 QString operator()(const QString& key) const noexcept;
105 static
bool query(const
Project& project, const QString& key,
106 QString& value) noexcept;
108 const QString& key, QString& value) noexcept;
110 QString& value) noexcept;
112 QString& value) noexcept;
113 static
bool query(const
Board& board, const QString& key,
114 QString& value) noexcept;
116 QString& value) noexcept;
118 QString& value) noexcept;
119 static
bool query(const
Part& part, const QString& key,
120 QString& value) noexcept;
The AssemblyVariant class.
Definition: assemblyvariant.h:45
The BI_Device class.
Definition: bi_device.h:57
The Board class represents a PCB of a project and is always part of a circuit.
Definition: board.h:73
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Definition: circuit.h:70
The ComponentInstance class.
Definition: componentinstance.h:54
The Part class.
Definition: part.h:46
Determine an attribute value of an object within a librepcb::Project.
Definition: projectattributelookup.h:67
ProjectAttributeLookup()=delete
~ProjectAttributeLookup() noexcept
Definition: projectattributelookup.cpp:148
LookupFunction mFunction
Definition: projectattributelookup.h:123
static bool query(const Project &project, const QString &key, QString &value) noexcept
Definition: projectattributelookup.cpp:170
std::function< QString(const QString &)> LookupFunction
Definition: projectattributelookup.h:68
The Project class represents a whole (opened) project with all its content.
Definition: project.h:71
The SI_Symbol class.
Definition: si_symbol.h:54
The Schematic class represents one schematic page of a project and is always part of a circuit.
Definition: schematic.h:74
Definition: occmodel.cpp:77