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

Method getHyperHdrInstance

sources/base/HyperHdrManager.cpp:139–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138
139std::shared_ptr<HyperHdrInstance> HyperHdrManager::getHyperHdrInstance(quint8 instance)
140{
141 if (_runningInstances.contains(instance))
142 return _runningInstances.value(instance);
143
144 Warning(_log, "The requested instance index '%d' with name '%s' isn't running, return main instance", instance, QSTRING_CSTR(_instanceTable->getNamebyIndex(instance)));
145 return _runningInstances.value(0);
146}
147
148std::vector<QString> HyperHdrManager::getInstances()
149{

Callers

nothing calls this directly

Calls 2

getNamebyIndexMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected