Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FSerializedUATProcess Class Reference

#include <MonitoredProcess.h>

+ Inheritance diagram for FSerializedUATProcess:
+ Collaboration diagram for FSerializedUATProcess:

Public Member Functions

 FSerializedUATProcess (const FString &RunUATCommandline)
 
virtual bool Launch () override
 
FSimpleDelegateOnLaunchFailed ()
 
- Public Member Functions inherited from FMonitoredProcess
 FMonitoredProcess (const FString &InURL, const FString &InParams, bool InHidden, bool InCreatePipes=true)
 
 FMonitoredProcess (const FString &InURL, const FString &InParams, const FString &InWorkingDir, bool InHidden, bool InCreatePipes=true)
 
virtual ~FMonitoredProcess ()
 
void Cancel (bool InKillTree=false)
 
FTimespan GetDuration () const
 
FProcHandle GetProcessHandle () const
 
FString GetCommandline () const
 
bool Update ()
 
void SetSleepInterval (float InSleepInterval)
 
FSimpleDelegateOnCanceled ()
 
FOnMonitoredProcessCompletedOnCompleted ()
 
FOnMonitoredProcessOutputOnOutput ()
 
int GetReturnCode () const
 
const FStringGetFullOutputWithoutDelegate () const
 
virtual bool Init () override
 
virtual uint32 Run () override
 
virtual void Stop () override
 
virtual void Exit () override
 
virtual FSingleThreadRunnableGetSingleThreadInterface () override
 
- Public Member Functions inherited from FRunnable
virtual ~FRunnable ()
 

Static Public Member Functions

static FString GetUATPath ()
 

Private Member Functions

bool LaunchNext ()
 
bool LaunchInternal ()
 

Static Private Member Functions

static void CancelQueue ()
 

Private Attributes

FSerializedUATProcessNextProcessToRun = nullptr
 
FSimpleDelegate LaunchFailedDelegate
 

Static Private Attributes

static FCriticalSection Serializer
 
static bool bHasSucceededOnce
 
static FSerializedUATProcessHeadProcess
 

Additional Inherited Members

- Protected Member Functions inherited from FMonitoredProcess
void Tick () override
 
void ProcessOutput (const FString &Output)
 
void TickInternal ()
 
 TSAN_ATOMIC (bool) bIsRunning
 
- Protected Attributes inherited from FMonitoredProcess
bool Canceling = false
 
FDateTime EndTime
 
bool Hidden = false
 
bool KillTree = false
 
FString Params
 
FProcHandle ProcessHandle
 
voidReadPipe = nullptr
 
int ReturnCode = 0
 
FDateTime StartTime { 0 }
 
FRunnableThreadThread = nullptr
 
FString URL
 
FString WorkingDir
 
voidWritePipe = nullptr
 
bool bCreatePipes = false
 
float SleepInterval = 0.01f
 
FString OutputBuffer
 
FSimpleDelegate CanceledDelegate
 
FOnMonitoredProcessCompleted CompletedDelegate
 
FOnMonitoredProcessOutput OutputDelegate
 

Detailed Description

Definition at line 278 of file MonitoredProcess.h.

Constructor & Destructor Documentation

◆ FSerializedUATProcess()

FSerializedUATProcess::FSerializedUATProcess ( const FString & RunUATCommandline)

Member Function Documentation

◆ CancelQueue()

static void FSerializedUATProcess::CancelQueue ( )
staticprivate

◆ GetUATPath()

static FString FSerializedUATProcess::GetUATPath ( )
static

Get the host-platform-specific path to the UAT running script

◆ Launch()

virtual bool FSerializedUATProcess::Launch ( )
overridevirtual

Run UAT, serially with other FSerializedUATProcess objects. Because the actual call is delayed, this will always return true, and the LaunchFailedDelegate will be called later if an error happens

Reimplemented from FMonitoredProcess.

◆ LaunchInternal()

bool FSerializedUATProcess::LaunchInternal ( )
private

◆ LaunchNext()

bool FSerializedUATProcess::LaunchNext ( )
private

◆ OnLaunchFailed()

FSimpleDelegate & FSerializedUATProcess::OnLaunchFailed ( )
inline

Returns a delegate that is executed when the process has been canceled.

Returns
The delegate.

Definition at line 300 of file MonitoredProcess.h.

Member Data Documentation

◆ bHasSucceededOnce

bool FSerializedUATProcess::bHasSucceededOnce
staticprivate

Definition at line 320 of file MonitoredProcess.h.

◆ HeadProcess

FSerializedUATProcess* FSerializedUATProcess::HeadProcess
staticprivate

Definition at line 321 of file MonitoredProcess.h.

◆ LaunchFailedDelegate

FSimpleDelegate FSerializedUATProcess::LaunchFailedDelegate
private

Definition at line 317 of file MonitoredProcess.h.

◆ NextProcessToRun

FSerializedUATProcess* FSerializedUATProcess::NextProcessToRun = nullptr
private

Definition at line 313 of file MonitoredProcess.h.

◆ Serializer

FCriticalSection FSerializedUATProcess::Serializer
staticprivate

Definition at line 319 of file MonitoredProcess.h.


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