UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
combobox_ui.cpp File Reference
#include "combobox_ui.hpp"
#include "overload.hpp"
Include dependency graph for combobox_ui.cpp:

Go to the source code of this file.

Functions

static bool conditionsSatisfied (const std::vector< std::vector< ConditionItem > > &conds, Settings *settings)
 

Function Documentation

◆ conditionsSatisfied()

static bool conditionsSatisfied ( const std::vector< std::vector< ConditionItem > > & conds,
Settings * settings )
static

Definition at line 41 of file combobox_ui.cpp.

44{
45 for(const auto &condClause : conds){
46 bool orRes = false;
47 for(const auto &condItem : condClause){
48 bool val = condItem.value.val == settings->getOption(condItem.value.opt).getValue();
49
50 //negate result if negation is true
51 val = val != condItem.negation;
52
53 if(val){
54 orRes = true;
55 break;
56 }
57 }
58 if(!orRes){
59 return false;
60 }
61 }
62
63 return true;
64}
int void * val
std::string getValue() const
Definition settings.cpp:26
const Option & getOption(const std::string &opt) const
Definition settings.cpp:384

References Settings::getOption(), Option::getValue(), and val.

Referenced by ComboBoxUi::updateUiItems().

Here is the call graph for this function: