AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Retrieves data about processes.
Classes | |
struct | ArgSingleString |
Process arguments represented as a single string. More... | |
struct | ArgStringList |
Process arguments represented as array of strings. More... | |
struct | ProcessCreationInfo |
Process creation info. More... | |
Public Member Functions | |
virtual APath | getModuleName ()=0 |
virtual APath | getPathToExecutable ()=0 |
virtual uint32_t | getPid () const noexcept=0 |
virtual int | waitForExitCode ()=0 |
Wait for process to be finished and returns exit code. More... | |
virtual size_t | processMemory () const =0 |
Obtain process memory usage. More... | |
void | kill () const noexcept |
Public Member Functions inherited from aui::noncopyable | |
noncopyable (const noncopyable &)=delete | |
noncopyable & | operator= (const noncopyable &)=delete |
Static Public Member Functions | |
static _< AChildProcess > | create (ProcessCreationInfo args) |
Launches an executable. More... | |
static _< AChildProcess > | make (AString applicationFile, AString args={}, APath workingDirectory={}) |
Launches an executable. More... | |
static int | executeWaitForExit (AString applicationFile, AString args={}, APath workingDirectory={}, ASubProcessExecutionFlags flags=ASubProcessExecutionFlags::DEFAULT) |
Launches executable. More... | |
static AVector< _< AProcess > > | all () |
static _< AProcess > | self () |
static _< AProcess > | findAnotherSelfInstance (const AString &yourProjectName) |
tempFileName file name which will be used as lock More... | |
static _< AProcess > | fromPid (uint32_t pid) |
|
static |
Launches an executable.
args | designated initializer. See ProcessCreationInfo |
|
static |
Launches executable.
applicationFile | executable file |
args | arguments |
workingDirectory | working directory |
tempFileName file name which will be used as lock
|
pure virtual |
Implemented in ASelfProcess, AChildProcess, AOtherProcess, and AOtherProcess.
|
pure virtual |
Implemented in ASelfProcess, AChildProcess, AOtherProcess, and AOtherProcess.
|
pure virtualnoexcept |
Implemented in ASelfProcess, AChildProcess, AOtherProcess, and AOtherProcess.
|
inlinestatic |
Launches an executable.
applicationFile | executable file |
args | arguments |
workingDirectory | working directory |
|
pure virtual |
Obtain process memory usage.
Implemented in ASelfProcess, AChildProcess, AOtherProcess, and AOtherProcess.
|
pure virtual |
Wait for process to be finished and returns exit code.
Implemented in ASelfProcess, AChildProcess, AOtherProcess, and AOtherProcess.
#include <AUI/Platform/AProcess.h>