MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / getAllInstances

Method getAllInstances

sources/db/InstanceTable.cpp:80–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80QVector<QVariantMap> InstanceTable::getAllInstances(bool justEnabled)
81{
82 QVector<QVariantMap> results;
83 getRecords(results, QStringList(), QStringList() << "instance ASC");
84 if (justEnabled)
85 {
86 for (auto it = results.begin(); it != results.end();)
87 {
88 if (!(*it)["enabled"].toBool())
89 {
90 it = results.erase(it);
91 continue;
92 }
93 ++it;
94 }
95 }
96 return results;
97}
98
99bool InstanceTable::instanceExist(quint8 inst)
100{

Callers 2

startAllMethod · 0.80
getInstanceDataMethod · 0.80

Calls 1

beginMethod · 0.80

Tested by

no test coverage detected