Audacity 3.2.0
ShuttlePrefs.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 ShuttlePrefs.h
6
7 Dominic Mazzoni
8 James Crook
9
10**********************************************************************/
11
12#ifndef __AUDACITY_SHUTTLE_PREFS__
13#define __AUDACITY_SHUTTLE_PREFS__
14
15#include "Shuttle.h"
16
17class ShuttlePrefs final : public Shuttle
18{
19public:
20 // constructors and destructors
22 virtual ~ShuttlePrefs() {};
23
24public:
25 bool TransferBool( const wxString & Name, bool & bValue, const bool & bDefault ) override;
26// bool TransferFloat( const wxString & Name, float & fValue, const float &fDefault ) override;
27 bool TransferDouble( const wxString & Name, double & dValue, const double &dDefault ) override;
28 bool TransferInt(const wxString & Name, int & iValue, const int &iDefault) override;
29 bool TransferString(const wxString & Name, wxString & strValue, const wxString &strDefault) override;
30 bool TransferWrappedType(const wxString & Name, WrappedType & W) override;
31 bool ExchangeWithMaster(const wxString & Name) override;
32};
33
34#endif
#define W(N, I)
Definition: ToChars.cpp:60
Moves data from one place to another, converting it as required.
Definition: Shuttle.h:70
A kind of Shuttle to exchange data with preferences e.g. the registry.
Definition: ShuttlePrefs.h:18
bool TransferString(const wxString &Name, wxString &strValue, const wxString &strDefault) override
bool TransferInt(const wxString &Name, int &iValue, const int &iDefault) override
virtual ~ShuttlePrefs()
Definition: ShuttlePrefs.h:22
bool TransferWrappedType(const wxString &Name, WrappedType &W) override
bool TransferDouble(const wxString &Name, double &dValue, const double &dDefault) override
bool TransferBool(const wxString &Name, bool &bValue, const bool &bDefault) override
bool ExchangeWithMaster(const wxString &Name) override
Used in type conversions, this wrapper for ints, strings, doubles and enums provides conversions betw...
Definition: WrappedType.h:31