LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
sc::CSVFetchThread Class Reference

#include <dataprovider.hxx>

Inheritance diagram for sc::CSVFetchThread:
[legend]
Collaboration diagram for sc::CSVFetchThread:
[legend]

Public Member Functions

 CSVFetchThread (ScDocument &rDoc, OUString, std::function< void()> aImportFinishedHdl, std::vector< std::shared_ptr< sc::DataTransformation > > &&mrDataTransformations)
 
virtual ~CSVFetchThread () override
 
void RequestTerminate ()
 
bool IsRequestedTerminate ()
 
void Terminate ()
 
void EndThread ()
 
virtual void execute () override
 
- Public Member Functions inherited from salhelper::Thread
 Thread (char const *name)
 
void launch ()
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Attributes

ScDocumentmrDocument
 
OUString maURL
 
std::atomic< bool > mbTerminate
 
orcus::csv::parser_config maConfig
 
std::vector< std::shared_ptr< sc::DataTransformation > > maDataTransformations
 
std::function< void()> maImportFinishedHdl
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::Thread
static void * operator new (std::size_t size)
 
static void operator delete (void *pointer)
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from salhelper::Thread
virtual ~Thread () SAL_OVERRIDE
 
virtual void execute ()=0
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 36 of file dataprovider.hxx.

Constructor & Destructor Documentation

◆ CSVFetchThread()

sc::CSVFetchThread::CSVFetchThread ( ScDocument rDoc,
OUString  aURL,
std::function< void()>  aImportFinishedHdl,
std::vector< std::shared_ptr< sc::DataTransformation > > &&  mrDataTransformations 
)

Definition at line 66 of file csvdataprovider.cxx.

References aURL, maConfig, and maURL.

◆ ~CSVFetchThread()

sc::CSVFetchThread::~CSVFetchThread ( )
overridevirtual

Definition at line 80 of file csvdataprovider.cxx.

Member Function Documentation

◆ EndThread()

void sc::CSVFetchThread::EndThread ( )

Definition at line 94 of file csvdataprovider.cxx.

References RequestTerminate().

◆ execute()

void sc::CSVFetchThread::execute ( )
overridevirtual

◆ IsRequestedTerminate()

bool sc::CSVFetchThread::IsRequestedTerminate ( )

Definition at line 84 of file csvdataprovider.cxx.

References mbTerminate.

◆ RequestTerminate()

void sc::CSVFetchThread::RequestTerminate ( )

Definition at line 89 of file csvdataprovider.cxx.

References mbTerminate.

Referenced by EndThread().

◆ Terminate()

void sc::CSVFetchThread::Terminate ( )

Member Data Documentation

◆ maConfig

orcus::csv::parser_config sc::CSVFetchThread::maConfig
private

Definition at line 43 of file dataprovider.hxx.

Referenced by CSVFetchThread(), and execute().

◆ maDataTransformations

std::vector<std::shared_ptr<sc::DataTransformation> > sc::CSVFetchThread::maDataTransformations
private

Definition at line 45 of file dataprovider.hxx.

Referenced by execute().

◆ maImportFinishedHdl

std::function<void()> sc::CSVFetchThread::maImportFinishedHdl
private

Definition at line 47 of file dataprovider.hxx.

Referenced by execute().

◆ maURL

OUString sc::CSVFetchThread::maURL
private

Definition at line 39 of file dataprovider.hxx.

Referenced by execute().

◆ mbTerminate

std::atomic<bool> sc::CSVFetchThread::mbTerminate
private

Definition at line 41 of file dataprovider.hxx.

Referenced by execute(), IsRequestedTerminate(), and RequestTerminate().

◆ mrDocument

ScDocument& sc::CSVFetchThread::mrDocument
private

Definition at line 38 of file dataprovider.hxx.

Referenced by execute().


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