Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
Response Class Reference

Stores a command response string (and other response data if it becomes necessary) More...

#include <ResponseQueue.h>

Collaboration diagram for Response:
[legend]

Public Member Functions

 Response (const wxString &response)
 
wxString GetMessage ()
 

Private Attributes

std::string mMessage
 

Detailed Description

Stores a command response string (and other response data if it becomes necessary)

The string is internally stored as a std::string rather than wxString because of thread-safety concerns.

Definition at line 46 of file ResponseQueue.h.

Constructor & Destructor Documentation

◆ Response()

Response::Response ( const wxString &  response)
inline

Definition at line 50 of file ResponseQueue.h.

51 : mMessage(response.utf8_str())
52 { }
std::string mMessage
Definition: ResponseQueue.h:48

Member Function Documentation

◆ GetMessage()

wxString Response::GetMessage ( )
inline

Definition at line 54 of file ResponseQueue.h.

55 {
56 return wxString(mMessage.c_str(), wxConvUTF8);
57 }

References mMessage.

Member Data Documentation

◆ mMessage

std::string Response::mMessage
private

Definition at line 48 of file ResponseQueue.h.

Referenced by GetMessage().


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