Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
ExportCLProcess Class Referencefinal
Inheritance diagram for ExportCLProcess:
[legend]
Collaboration diagram for ExportCLProcess:
[legend]

Public Member Functions

 ExportCLProcess (wxString *output)
 
bool IsActive ()
 
void OnTerminate (int WXUNUSED(pid), int status)
 
int GetStatus ()
 

Private Attributes

wxString * mOutput
 
bool mActive
 
int mStatus
 

Detailed Description

Definition at line 229 of file ExportCL.cpp.

Constructor & Destructor Documentation

◆ ExportCLProcess()

ExportCLProcess::ExportCLProcess ( wxString *  output)
inline

Definition at line 232 of file ExportCL.cpp.

233 {
234#if defined(__WXMAC__)
235 // Don't want to crash on broken pipe
236 signal(SIGPIPE, SIG_IGN);
237#endif
238
239 mOutput = output;
240 mActive = true;
241 mStatus = -555;
242 Redirect();
243 }
wxString * mOutput
Definition: ExportCL.cpp:265

References mActive, mOutput, and mStatus.

Member Function Documentation

◆ GetStatus()

int ExportCLProcess::GetStatus ( )
inline

Definition at line 259 of file ExportCL.cpp.

260 {
261 return mStatus;
262 }

References mStatus.

Referenced by ExportCL::Export().

Here is the caller graph for this function:

◆ IsActive()

bool ExportCLProcess::IsActive ( )
inline

Definition at line 245 of file ExportCL.cpp.

246 {
247 return mActive;
248 }

References mActive.

Referenced by ExportCL::Export().

Here is the caller graph for this function:

◆ OnTerminate()

void ExportCLProcess::OnTerminate ( int   WXUNUSEDpid,
int  status 
)
inline

Definition at line 250 of file ExportCL.cpp.

251 {
252 Drain(GetInputStream(), mOutput);
253 Drain(GetErrorStream(), mOutput);
254
255 mStatus = status;
256 mActive = false;
257 }
static void Drain(wxInputStream *s, wxString *o)
Definition: ExportCL.cpp:218

References Drain(), mActive, mOutput, and mStatus.

Here is the call graph for this function:

Member Data Documentation

◆ mActive

bool ExportCLProcess::mActive
private

Definition at line 266 of file ExportCL.cpp.

Referenced by ExportCLProcess(), IsActive(), and OnTerminate().

◆ mOutput

wxString* ExportCLProcess::mOutput
private

Definition at line 265 of file ExportCL.cpp.

Referenced by ExportCLProcess(), and OnTerminate().

◆ mStatus

int ExportCLProcess::mStatus
private

Definition at line 267 of file ExportCL.cpp.

Referenced by ExportCLProcess(), GetStatus(), and OnTerminate().


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