Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
ShuttleCli Class Referencefinal

Derived from Shuttle, this class exchanges string parameters with a binary representation. More...

#include <Shuttle.h>

Inheritance diagram for ShuttleCli:
[legend]
Collaboration diagram for ShuttleCli:
[legend]

Public Member Functions

 ShuttleCli ()
 
virtual ~ShuttleCli ()
 
bool ExchangeWithMaster (const wxString &Name) override
 
- Public Member Functions inherited from Shuttle
 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

wxString mParams
 
- Public Attributes inherited from Shuttle
bool mbStoreInClient
 
wxString mValueString
 

Detailed Description

Derived from Shuttle, this class exchanges string parameters with a binary representation.

See also
ShuttleBase
ShuttleGui

Definition at line 96 of file Shuttle.h.

Constructor & Destructor Documentation

◆ ShuttleCli()

ShuttleCli::ShuttleCli ( )
inline

Definition at line 100 of file Shuttle.h.

100{}

◆ ~ShuttleCli()

virtual ShuttleCli::~ShuttleCli ( )
inlinevirtual

Definition at line 101 of file Shuttle.h.

101{}

Member Function Documentation

◆ ExchangeWithMaster()

bool ShuttleCli::ExchangeWithMaster ( const wxString &  Name)
overridevirtual

Reimplemented from Shuttle.

Definition at line 267 of file Shuttle.cpp.

268{
269 if( !mbStoreInClient )
270 {
271 mParams += wxT(" ");
272 mParams +=Name;
273 mParams += wxT("=");
275 }
276 else
277 {
278 int i;
279 mParams = wxT(" ")+mParams;
280 i=mParams.Find( wxT(" ")+Name+wxT("=") );
281 if( i>=0 )
282 {
283 int j=i+2+Name.length();
284 wxString terminator = wxT(' ');
285 if(mParams.GetChar(j) == wxT('"')) //Strings are surrounded by quotes
286 {
287 terminator = wxT('"');
288 j++;
289 }
290 else if(mParams.GetChar(j) == wxT('\'')) // or by single quotes.
291 {
292 terminator = wxT('\'');
293 j++;
294 }
295 i=j;
296 while( j<(int)mParams.length() && mParams.GetChar(j) != terminator )
297 j++;
298 mValueString = mParams.Mid(i,j-i);
299 return true;
300 }
301 return false;
302 }
303 return true;
304}
wxT("CloseDown"))
wxString mParams
Definition: Shuttle.h:99
bool mbStoreInClient
Definition: Shuttle.h:77
wxString mValueString
Definition: Shuttle.h:78

References Shuttle::mbStoreInClient, mParams, Shuttle::mValueString, and wxT().

Here is the call graph for this function:

Member Data Documentation

◆ mParams

wxString ShuttleCli::mParams

Definition at line 99 of file Shuttle.h.

Referenced by CommandBuilder::BuildCommand(), and ExchangeWithMaster().


The documentation for this class was generated from the following files: