WSF
wizard::ProjectParseThread Class Reference

Thread for parsing the WSF source in the background. More...

#include <ProjectParseThread.hpp>

Inherits UtThread.

Classes

struct  Task

Public Types

enum  TaskPhase {
  cNOT_WORKING , cPARSING , cPARSE_DONE , cSERIALIZING ,
  cSERIALIZE_DONE
}

Public Member Functions

 ProjectParseThread ()
 ~ProjectParseThread () override=default
void JoinThread ()
void Run () override
void Abort ()
bool IsAborting () const
void SetTask (const Task &aTask)
void SetComplete ()
void SetRunOnCompletion (std::function< void()> onCompletion)
TaskPhase GetPhase () const

Detailed Description

Thread for parsing the WSF source in the background.

Member Enumeration Documentation

◆ TaskPhase

Enumerator
cNOT_WORKING 

No parsing is being requested.

cPARSING 

Parsing has started. Transition to this phase is always done by the main thread.

cPARSE_DONE 

Parsing is complete. Transition to this phase is always done by parsing thread.

cSERIALIZING 
cSERIALIZE_DONE 

Constructor & Destructor Documentation

◆ ProjectParseThread()

wizard::ProjectParseThread::ProjectParseThread ( )

References cNOT_WORKING.

◆ ~ProjectParseThread()

wizard::ProjectParseThread::~ProjectParseThread ( )
overridedefault

Member Function Documentation

◆ Abort()

void wizard::ProjectParseThread::Abort ( )

Referenced by JoinThread().

◆ GetPhase()

TaskPhase wizard::ProjectParseThread::GetPhase ( ) const
inline

◆ IsAborting()

bool wizard::ProjectParseThread::IsAborting ( ) const
inline

◆ JoinThread()

void wizard::ProjectParseThread::JoinThread ( )

References Abort().

◆ Run()

void wizard::ProjectParseThread::Run ( )
override

◆ SetComplete()

void wizard::ProjectParseThread::SetComplete ( )

◆ SetRunOnCompletion()

void wizard::ProjectParseThread::SetRunOnCompletion ( std::function< void()> onCompletion)
inline

◆ SetTask()


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved