![]() |
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 72 of file Shuttle.cpp.
|
virtual |
Reimplemented in ShuttleCli, and ShuttlePrefs.
Definition at line 256 of file Shuttle.cpp.
Referenced by TransferBool(), TransferDouble(), TransferEnum(), TransferFloat(), TransferInt(), TransferLongLong(), TransferString(), and TransferWrappedType().
|
virtual |
Reimplemented in ShuttlePrefs.
Definition at line 76 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, and mValueString.
|
virtual |
Reimplemented in ShuttlePrefs.
Definition at line 114 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, and mValueString.
|
virtual |
Definition at line 178 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, mValueString, and str.
|
virtual |
Definition at line 95 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, and mValueString.
|
virtual |
Reimplemented in ShuttlePrefs.
Definition at line 134 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, and mValueString.
|
virtual |
Definition at line 153 of file Shuttle.cpp.
References TransferLongLong().
|
virtual |
Definition at line 158 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, and mValueString.
Referenced by TransferInt().
|
virtual |
Reimplemented in ShuttlePrefs.
Definition at line 219 of file Shuttle.cpp.
References ExchangeWithMaster(), mbStoreInClient, and mValueString.
Referenced by CommandBuilder::BuildCommand().
|
virtual |
Reimplemented in ShuttlePrefs.
Definition at line 238 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().