Navigation
API > API/Plugins > API/Plugins/LearningTraining
Simple managed subprocess similar to FMonitoredProcess
| Name | FSubprocess |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Public/LearningTrainer.h |
| Include Path | #include "LearningTrainer.h" |
Syntax
struct FSubprocess
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FSubprocess() |
Will Terminate the subprocess if it is running. | LearningTrainer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsLaunched | bool | If a subprocess has been launched. | LearningTrainer.h | |
| OutputBuffer | FString | Buffer for the subprocess' stdout. | LearningTrainer.h | |
| ProcessHandle | FProcHandle | Subprocess handle. | LearningTrainer.h | |
| ReadPipe | void * | Read pipe for subprocess stdout. | LearningTrainer.h | |
| WritePipe | void * | Write pipe for subprocess stdin. | LearningTrainer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsRunning() |
Return true if the Subprocess is launched and running, otherwise false. | LearningTrainer.h | |
bool Launch
(
const FString& Path, |
Launches a new subprocess. | LearningTrainer.h | |
void Terminate() |
Terminates the subprocess | LearningTrainer.h | |
bool Update() |
Outputs anything the subprocess has written to stdout to the log line-by-line and returns true if the subprocess is still running. | LearningTrainer.h |