Skip to content

Struct FTrainingStateUpdate

Struct FTrainingStateUpdate

  • Defined in File TrainingUpdate.h
struct FTrainingStateUpdate

Source: Source/Schola/Training/Public/TrainingDataTypes/TrainingUpdate.h

Dependencies: FTrainingReset, FTrainingStep

A Struct representing an update to the overall training state.


Public Functions

SymbolDetails
FTrainingStateUpdateConstruct a new empty training state update.
GetStepGet the step data from this update.
GetResetGet the reset data from this update.
IsStepCheck if this is a step update.
IsResetCheck if this is a reset update.
IsErrorCheck if the connector has encountered an error.
IsClosedCheck if the connector has been closed.

FTrainingStateUpdate

inline FTrainingStateUpdate()

Construct a new empty training state update.

Attributes: inline

Source: Source/Schola/Training/Public/TrainingDataTypes/TrainingUpdate.h

GetStep

inline const FTrainingStep &GetStep() const

Get the step data from this update.

Returns:

Reference to the step data.

Attributes: inline, const

Source: Source/Schola/Training/Public/TrainingDataTypes/TrainingUpdate.h

GetReset

inline const FTrainingReset &GetReset() const

Get the reset data from this update.

Returns:

Reference to the reset data.

Attributes: inline, const

Source: Source/Schola/Training/Public/TrainingDataTypes/TrainingUpdate.h

IsStep

inline const bool IsStep() const

Check if this is a step update.

Returns:

True if this update contains a step.

Attributes: inline, const

Source: Source/Schola/Training/Public/TrainingDataTypes/TrainingUpdate.h

IsReset

inline const bool IsReset() const

Check if this is a reset update.

Returns:

True if this update contains a reset.

Attributes: inline, const

Source: Source/Schola/Training/Public/TrainingDataTypes/TrainingUpdate.h

IsError

inline const bool IsError() const

Check if the connector has encountered an error.

Returns:

True if the status indicates an error.

Attributes: inline, const

Source: Source/Schola/Training/Public/TrainingDataTypes/TrainingUpdate.h

IsClosed

inline const bool IsClosed() const

Check if the connector has been closed.

Returns:

True if the status indicates closure.

Attributes: inline, const

Source: Source/Schola/Training/Public/TrainingDataTypes/TrainingUpdate.h


Public Members

SymbolDetails
UpdateTypeThe type of update.
StepDataTraining step data (valid when UpdateType == STEP)
ResetDataTraining reset data (valid when UpdateType == RESET)
StatusThe status of the connector.

UpdateType

ETrainingUpdateType UpdateType = ETrainingUpdateType::NONE

The type of update.


StepData

FTrainingStep StepData

Training step data (valid when UpdateType == STEP)


ResetData

FTrainingReset ResetData

Training reset data (valid when UpdateType == RESET)


Status

EConnectorStatusUpdate Status = EConnectorStatusUpdate::NONE

The status of the connector.