| 127 | } |
| 128 | |
| 129 | bool MacroConditionVariable::Save(obs_data_t *obj) const |
| 130 | { |
| 131 | MacroCondition::Save(obj); |
| 132 | obs_data_set_string(obj, "variableName", |
| 133 | GetWeakVariableName(_variable).c_str()); |
| 134 | obs_data_set_string(obj, "variable2Name", |
| 135 | GetWeakVariableName(_variable2).c_str()); |
| 136 | _strValue.Save(obj, "strValue"); |
| 137 | obs_data_set_double(obj, "numValue", _numValue); |
| 138 | obs_data_set_int(obj, "condition", static_cast<int>(_type)); |
| 139 | _regex.Save(obj); |
| 140 | return true; |
| 141 | } |
| 142 | |
| 143 | bool MacroConditionVariable::Load(obs_data_t *obj) |
| 144 | { |
nothing calls this directly
no test coverage detected