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

Method Save

lib/variables/variable.cpp:62–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void Variable::Save(obs_data_t *obj) const
63{
64 Item::Save(obj);
65 obs_data_set_int(obj, "saveAction", static_cast<int>(_saveAction));
66
67 {
68 std::lock_guard<std::mutex> lock(_mutex);
69 if (_saveAction == SaveAction::SAVE) {
70 obs_data_set_string(obj, "value", _value.c_str());
71 }
72 }
73
74 obs_data_set_string(obj, "defaultValue", _defaultValue.c_str());
75}
76
77std::string Variable::Value(bool updateLastUsed) const
78{

Callers 1

SaveVariablesFunction · 0.45

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected