MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / Set

Method Set

WinArk/Settings.h:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103 template<typename T>
104 void Set(const std::wstring& name, const T& value, SettingType type = SettingType::Binary) {
105 auto it = _settings.find(name);
106 if (it != _settings.end()) {
107 it->second.Set(value);
108 }
109 else {
110 Setting s(name, value, type);
111 _settings.insert({ name,std::move(s) });
112 }
113 }
114
115 void Set(PCWSTR name, int value);
116 void Set(PCWSTR name, std::vector<std::wstring> const& values);

Callers

nothing calls this directly

Calls 2

endMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected