| 330 | |
| 331 | template <typename StructureType, typename FieldType> |
| 332 | void writePrefs( |
| 333 | const StructureType* structure, const wxString& prefix, |
| 334 | const PrefsTableEntry<StructureType, FieldType>* fields, size_t numFields) |
| 335 | { |
| 336 | for (size_t ii = 0; ii < numFields; ++ii) |
| 337 | { |
| 338 | const PrefsTableEntry<StructureType, FieldType>& entry = fields[ii]; |
| 339 | gPrefs->Write(prefix + entry.name, structure->*(entry.field)); |
| 340 | } |
| 341 | } |
| 342 | } // namespace |
| 343 | |
| 344 | bool NoiseReductionBase::Settings::PrefsIO(bool read) |