Audacity  2.2.2
Public Member Functions | Private Attributes | List of all members
ExportCLProcess Class Referencefinal
Inheritance diagram for ExportCLProcess:

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 212 of file ExportCL.cpp.

Constructor & Destructor Documentation

ExportCLProcess::ExportCLProcess ( wxString *  output)
inline

Definition at line 215 of file ExportCL.cpp.

References mActive, mOutput, and mStatus.

216  {
217 #if defined(__WXMAC__)
218  // Don't want to crash on broken pipe
219  signal(SIGPIPE, SIG_IGN);
220 #endif
221 
222  mOutput = output;
223  mActive = true;
224  mStatus = -555;
225  Redirect();
226  }
wxString * mOutput
Definition: ExportCL.cpp:248

Member Function Documentation

int ExportCLProcess::GetStatus ( )
inline

Definition at line 242 of file ExportCL.cpp.

References mStatus.

Referenced by ExportCL::Export().

243  {
244  return mStatus;
245  }
bool ExportCLProcess::IsActive ( )
inline

Definition at line 228 of file ExportCL.cpp.

References mActive.

Referenced by ExportCL::Export().

229  {
230  return mActive;
231  }
void ExportCLProcess::OnTerminate ( int   WXUNUSEDpid,
int  status 
)
inline

Definition at line 233 of file ExportCL.cpp.

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

234  {
235  Drain(GetInputStream(), mOutput);
236  Drain(GetErrorStream(), mOutput);
237 
238  mStatus = status;
239  mActive = false;
240  }
static void Drain(wxInputStream *s, wxString *o)
Definition: ExportCL.cpp:201
wxString * mOutput
Definition: ExportCL.cpp:248

Member Data Documentation

bool ExportCLProcess::mActive
private

Definition at line 249 of file ExportCL.cpp.

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

wxString* ExportCLProcess::mOutput
private

Definition at line 248 of file ExportCL.cpp.

Referenced by ExportCLProcess(), and OnTerminate().

int ExportCLProcess::mStatus
private

Definition at line 250 of file ExportCL.cpp.

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


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