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

Method Save

WinArk/FilterConfiguration.cpp:48–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool FilterConfiguration::Save(PCWSTR path) {
49 IniFile file(path);
50 CString text;
51
52 int i = 1;
53 for (auto& filter : _filters) {
54 text.Format(L"Filter%d", i);
55 file.WriteString(text, L"Type", filter.Name.c_str());
56 file.WriteInt(text, L"Action", (int)filter.Action);
57 file.WriteInt(text, L"DefaultAction", (int)filter.Action);
58 file.WriteBool(text, L"Enabled", filter.Enabled);
59 file.WriteString(text, L"Parameters", filter.Parameters.c_str());
60 i++;
61 }
62
63 return true;
64}
65
66bool FilterConfiguration::Load(PCWSTR path) {
67 IniFile file(path);

Callers

nothing calls this directly

Calls 3

WriteIntMethod · 0.80
WriteBoolMethod · 0.80
WriteStringMethod · 0.45

Tested by

no test coverage detected