WSF
wizard::ParseWorker Class Reference

#include <ParseWorker.hpp>

Public Types

enum  Result {
  cFAILED , cABORTED , cPARSE_COMPLETE , cPROXY_SYNC_COMPLETE ,
  cPROXY_SERIALIZE_COMPLETE , cWORK_DONE
}

Public Member Functions

 ParseWorker (Project *aProjectPtr)
 ~ParseWorker ()
void Start (ParseResults *aResultsPtr, int aTaskId, bool aTestingParse)
 Primes the worker to begin a new parse.
std::vector< UtTextDocument * > StartSerialize (int aTaskId, const std::map< WsfPProxyPath, std::string > &aRenameMap, const std::map< WsfPProxyPath, std::string > &aSaveFiles)
void UpdateParseDefinitions ()
 Updates the parse definitions from the project's selected executable.
Result Execute ()
Result ExecuteParse ()
bool IsExecuting ()

Public Attributes

volatile bool * mAbortSwitch

Static Public Attributes

static const int cMAX_ERROR_COUNT = 100

Friends

class ViProjectParseThread

Member Enumeration Documentation

◆ Result

Enumerator
cFAILED 
cABORTED 
cPARSE_COMPLETE 
cPROXY_SYNC_COMPLETE 
cPROXY_SERIALIZE_COMPLETE 
cWORK_DONE 

Constructor & Destructor Documentation

◆ ParseWorker()

wizard::ParseWorker::ParseWorker ( Project * aProjectPtr)
explicit

References mAbortSwitch.

◆ ~ParseWorker()

wizard::ParseWorker::~ParseWorker ( )

Member Function Documentation

◆ Execute()

◆ ExecuteParse()

◆ IsExecuting()

bool wizard::ParseWorker::IsExecuting ( )
inline

◆ Start()

void wizard::ParseWorker::Start ( ParseResults * aResultsPtr,
int aTaskId,
bool aTestingParse )

◆ StartSerialize()

std::vector< UtTextDocument * > wizard::ParseWorker::StartSerialize ( int aTaskId,
const std::map< WsfPProxyPath, std::string > & aRenameMap,
const std::map< WsfPProxyPath, std::string > & aSaveFiles )

◆ UpdateParseDefinitions()

void wizard::ParseWorker::UpdateParseDefinitions ( )

Updates the parse definitions from the project's selected executable.

References wizard::WsfExe::GetParseDefinitions(), wizard::WsfExe::GetProxyRegistry(), and wizard::WsfExe::TakeScriptTypes().

Referenced by Start(), and StartSerialize().

◆ ViProjectParseThread

friend class ViProjectParseThread
friend

References ViProjectParseThread.

Referenced by ViProjectParseThread.

Member Data Documentation

◆ cMAX_ERROR_COUNT

const int wizard::ParseWorker::cMAX_ERROR_COUNT = 100
static

◆ mAbortSwitch

volatile bool* wizard::ParseWorker::mAbortSwitch

Referenced by ExecuteParse(), and ParseWorker().


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