MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / Save

Method Save

lib/macro/macro-condition-variable.cpp:129–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129bool 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
143bool MacroConditionVariable::Load(obs_data_t *obj)
144{

Callers

nothing calls this directly

Calls 2

GetWeakVariableNameFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected