Audacity 3.2.0
|
Moves data from one place to another, converting it as required. More...
#include <Shuttle.h>
Public Member Functions | |
Shuttle () | |
virtual | ~Shuttle () |
virtual bool | TransferBool (const wxString &Name, bool &bValue, const bool &bDefault) |
virtual bool | TransferFloat (const wxString &Name, float &fValue, const float &fDefault) |
virtual bool | TransferDouble (const wxString &Name, double &dValue, const double &dDefault) |
virtual bool | TransferInt (const wxString &Name, int &iValue, const int &iDefault) |
virtual bool | TransferInt (const wxString &Name, wxLongLong_t &iValue, const wxLongLong_t &iDefault) |
virtual bool | TransferLongLong (const wxString &Name, wxLongLong_t &iValue, const wxLongLong_t &iDefault) |
virtual bool | TransferString (const wxString &Name, wxString &strValue, const wxString &strDefault) |
virtual bool | TransferEnum (const wxString &Name, int &iValue, const int nChoices, const wxString *pFirstStr) |
virtual bool | TransferWrappedType (const wxString &Name, WrappedType &W) |
virtual bool | ExchangeWithMaster (const wxString &Name) |
Public Attributes | |
bool | mbStoreInClient |
wxString | mValueString |
Moves data from one place to another, converting it as required.
Shuttle provides a base class for transferring parameter data into and out of classes into some other structure. This is a common requirement and is needed for:
The 'Master' is the string side of the shuttle transfer, the 'Client' is the binary data side of the transfer.
Shuttle::Shuttle | ( | ) |
Definition at line 68 of file Shuttle.cpp.
|
virtual |
Reimplemented in ShuttleCli, and ShuttlePrefs.
Definition at line 252 of file Shuttle.cpp.
Referenced by TransferBool(), TransferDouble(), TransferEnum(), TransferFloat(), TransferInt(), TransferLongLong(), TransferString(), and TransferWrappedType().
|
virtual |
Reimplemented in ShuttlePrefs.
Definition at line 72 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, mValueString, and wxT().
|
virtual |
Reimplemented in ShuttlePrefs.
Definition at line 110 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, mValueString, and wxT().
|
virtual |
Definition at line 174 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, mValueString, str, and wxT().
|
virtual |
Definition at line 91 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, mValueString, and wxT().
|
virtual |
Reimplemented in ShuttlePrefs.
Definition at line 130 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, mValueString, and wxT().
|
virtual |
Definition at line 149 of file Shuttle.cpp.
References TransferLongLong().
|
virtual |
Definition at line 154 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, mValueString, and wxT().
Referenced by TransferInt().
|
virtual |
Reimplemented in ShuttlePrefs.
Definition at line 215 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, mValueString, and wxT().
Referenced by CommandBuilder::BuildCommand().
|
virtual |
Reimplemented in ShuttlePrefs.
Definition at line 234 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, mValueString, and W.
bool Shuttle::mbStoreInClient |
Definition at line 77 of file Shuttle.h.
Referenced by CommandBuilder::BuildCommand(), ShuttleCli::ExchangeWithMaster(), TransferBool(), ShuttlePrefs::TransferBool(), TransferDouble(), ShuttlePrefs::TransferDouble(), TransferEnum(), TransferFloat(), TransferInt(), ShuttlePrefs::TransferInt(), TransferLongLong(), TransferString(), ShuttlePrefs::TransferString(), and TransferWrappedType().
wxString Shuttle::mValueString |
Definition at line 78 of file Shuttle.h.
Referenced by ShuttleCli::ExchangeWithMaster(), TransferBool(), TransferDouble(), TransferEnum(), TransferFloat(), TransferInt(), TransferLongLong(), TransferString(), and TransferWrappedType().