Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
anonymous_namespace{ExportCL.cpp}::ExportCLProcess Class Referencefinal
Inheritance diagram for anonymous_namespace{ExportCL.cpp}::ExportCLProcess:
[legend]
Collaboration diagram for anonymous_namespace{ExportCL.cpp}::ExportCLProcess:
[legend]

Public Member Functions

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

Private Attributes

wxString * mOutput
 
bool mActive
 
int mStatus
 

Detailed Description

Definition at line 117 of file ExportCL.cpp.

Constructor & Destructor Documentation

◆ ExportCLProcess()

anonymous_namespace{ExportCL.cpp}::ExportCLProcess::ExportCLProcess ( wxString *  output)
inline

Definition at line 120 of file ExportCL.cpp.

121 {
122#if defined(__WXMAC__)
123 // Don't want to crash on broken pipe
124 signal(SIGPIPE, SIG_IGN);
125#endif
126
127 mOutput = output;
128 mActive = true;
129 mStatus = -555;
130 Redirect();
131 }

Member Function Documentation

◆ GetStatus()

int anonymous_namespace{ExportCL.cpp}::ExportCLProcess::GetStatus ( ) const
inline

Definition at line 147 of file ExportCL.cpp.

148 {
149 return mStatus;
150 }

◆ IsActive()

bool anonymous_namespace{ExportCL.cpp}::ExportCLProcess::IsActive ( ) const
inline

Definition at line 133 of file ExportCL.cpp.

134 {
135 return mActive;
136 }

◆ OnTerminate()

void anonymous_namespace{ExportCL.cpp}::ExportCLProcess::OnTerminate ( int   WXUNUSEDpid,
int  status 
)
inlineoverride

Definition at line 138 of file ExportCL.cpp.

139 {
140 Drain(GetInputStream(), mOutput);
141 Drain(GetErrorStream(), mOutput);
142
143 mStatus = status;
144 mActive = false;
145 }
void Drain(wxInputStream *s, wxString *o)
Definition: ExportCL.cpp:61

References anonymous_namespace{ExportCL.cpp}::Drain().

Here is the call graph for this function:

Member Data Documentation

◆ mActive

bool anonymous_namespace{ExportCL.cpp}::ExportCLProcess::mActive
private

Definition at line 154 of file ExportCL.cpp.

◆ mOutput

wxString* anonymous_namespace{ExportCL.cpp}::ExportCLProcess::mOutput
private

Definition at line 153 of file ExportCL.cpp.

◆ mStatus

int anonymous_namespace{ExportCL.cpp}::ExportCLProcess::mStatus
private

Definition at line 155 of file ExportCL.cpp.


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