13#ifndef __AUDACITY_EFFECT_EQUALIZATION_CURVES__
14#define __AUDACITY_EFFECT_EQUALIZATION_CURVES__
25 EQPoint(
const double f,
const double d ) { Freq = f; dB = d; }
29 return Freq < p1.
Freq;
45 return Name.CmpNoCase(that.
Name) < 0;
58 void SaveCurves(
const wxString &fileName = {});
70 : mCurves{ curves }, mName{
name }, mOptions{ options } {}
73 bool HandleXMLTag(
const std::string_view& tag,
const AttributesList &attrs)
override;
74 XMLTagHandler *HandleXMLChild(
const std::string_view& tag)
override;
76 void LoadCurves(
const wxString &fileName = {},
bool append =
false);
79 bool GetDefaultFileName(wxFileName &fileName);
80 wxString GetPrefsPrefix();
83 void UpdateDefaultCurves(
bool updateAll =
false);
std::vector< EQCurve > EQCurveArray
bool operator<(sampleCount a, sampleCount b)
std::vector< Attribute > AttributesList
EQCurve(const wxChar *name)
std::vector< EQPoint > points
EQCurve(const wxString &name={})
Deserializer of curves from XML files.
EQCurveReader(EQCurveArray &curves, const TranslatableString &name, int options)
const TranslatableString mName
Serializer of curves into XML files.
const EQCurveArray & mCurves
EQCurveWriter(const EQCurveArray &curves)
EQPoint(const double f, const double d)
Holds a msgid for the translation catalog; may also bind format arguments.
This class is an interface which should be implemented by classes which wish to be able to load and s...
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
void append(std::basic_string< Elem > &dest, First &&first, Others &&...others)