This is the documentation for Enlighten.

class Enlighten PrecomputeProcess

class Enlighten::PrecomputeProcess

Class for handling a long running external process.

Functions

Name Description
Cancel()

Cancels the running process.

CheckComplete()

Checks if the process has completed or not.

GetRetCode()

Gets the return code of the process. Must have completed.

PrecomputeProcess()

Constructor.

Start(const Geo::GeoFileString &)

Start a new long running process with the given commandline.

Wait()

Blocks until the process is complete.


void Enlighten::PrecomputeProcess::Cancel


public: void Cancel()


Cancels the running process.


bool Enlighten::PrecomputeProcess::CheckComplete


public: bool CheckComplete()


Checks if the process has completed or not.

Returns

true if the process has completed, false if it is still running.


Geo::s32 Enlighten::PrecomputeProcess::GetRetCode


public: Geo::s32 GetRetCode() const


Gets the return code of the process. Must have completed.


Enlighten::PrecomputeProcess::PrecomputeProcess


public: PrecomputeProcess()


Constructor.


bool Enlighten::PrecomputeProcess::Start


public: bool Start
(
    const Geo::GeoFileString & commandline
)


Start a new long running process with the given commandline.

Uses Win32 'Jobs' to allow the entire process tree spawned by the precompute to be killed.

Returns

true if the process is already complete, false if it is running.


void Enlighten::PrecomputeProcess::Wait


public: void Wait()


Blocks until the process is complete.