KiCad PCB EDA Suite
Loading...
Searching...
No Matches
wxFileOutputStreamWithProgress Class Reference

#include <wx_fstream_progress.h>

Inheritance diagram for wxFileOutputStreamWithProgress:

Public Member Functions

 wxFileOutputStreamWithProgress (const wxString &aFileName)
 
 wxFileOutputStreamWithProgress (wxFile &aFile)
 
 wxFileOutputStreamWithProgress (int aFd)
 
virtual ~wxFileOutputStreamWithProgress ()=default
 
void SetProgressCallback (std::function< void(size_t)> aCallback)
 
virtual size_t OnSysWrite (const void *aBuffer, size_t aSize) override
 

Private Attributes

std::function< void(size_t)> m_callback
 

Detailed Description

Definition at line 29 of file wx_fstream_progress.h.

Constructor & Destructor Documentation

◆ wxFileOutputStreamWithProgress() [1/3]

wxFileOutputStreamWithProgress::wxFileOutputStreamWithProgress ( const wxString &  aFileName)
inline

Definition at line 32 of file wx_fstream_progress.h.

◆ wxFileOutputStreamWithProgress() [2/3]

wxFileOutputStreamWithProgress::wxFileOutputStreamWithProgress ( wxFile &  aFile)
inline

Definition at line 37 of file wx_fstream_progress.h.

◆ wxFileOutputStreamWithProgress() [3/3]

wxFileOutputStreamWithProgress::wxFileOutputStreamWithProgress ( int  aFd)
inline

Definition at line 42 of file wx_fstream_progress.h.

◆ ~wxFileOutputStreamWithProgress()

virtual wxFileOutputStreamWithProgress::~wxFileOutputStreamWithProgress ( )
virtualdefault

Member Function Documentation

◆ OnSysWrite()

virtual size_t wxFileOutputStreamWithProgress::OnSysWrite ( const void *  aBuffer,
size_t  aSize 
)
inlineoverridevirtual

Definition at line 54 of file wx_fstream_progress.h.

References m_callback.

◆ SetProgressCallback()

void wxFileOutputStreamWithProgress::SetProgressCallback ( std::function< void(size_t)>  aCallback)
inline

Definition at line 49 of file wx_fstream_progress.h.

References m_callback.

Referenced by PCB_IO_IPC2581::SaveBoard().

Member Data Documentation

◆ m_callback

std::function<void( size_t )> wxFileOutputStreamWithProgress::m_callback
private

Definition at line 65 of file wx_fstream_progress.h.

Referenced by OnSysWrite(), and SetProgressCallback().


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