MCPcopy Create free account
hub / github.com/audacity/audacity / readPrefs

Function readPrefs

libraries/lib-builtin-effects/NoiseReductionBase.cpp:319–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317
318template <typename StructureType, typename FieldType>
319void readPrefs(
320 StructureType* structure, const wxString& prefix,
321 const PrefsTableEntry<StructureType, FieldType>* fields, size_t numFields)
322{
323 for (size_t ii = 0; ii < numFields; ++ii)
324 {
325 const PrefsTableEntry<StructureType, FieldType>& entry = fields[ii];
326 gPrefs->Read(
327 prefix + entry.name, &(structure->*(entry.field)), entry.defaultValue);
328 }
329}
330
331template <typename StructureType, typename FieldType>
332void writePrefs(

Callers 1

PrefsIOMethod · 0.85

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected