AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ASelfProcess Class Reference

Public Member Functions

int waitForExitCode () override
 Wait for process to be finished and returns exit code.
 
APath getModuleName () override
 
APath getPathToExecutable () override
 
uint32_t getPid () const noexcept override
 
size_t processMemory () const override
 Obtain process memory usage.
 
- Public Member Functions inherited from AProcess
void kill () const noexcept
 
- Public Member Functions inherited from aui::noncopyable
 noncopyable (const noncopyable &)=delete
 
noncopyableoperator= (const noncopyable &)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from AProcess
static _< AChildProcesscreate (ProcessCreationInfo args)
 Launches an executable.
 
static _< AChildProcessmake (AString applicationFile, AString args={}, APath workingDirectory={})
 Launches an executable.
 
static int executeWaitForExit (AString applicationFile, AString args={}, APath workingDirectory={}, ASubProcessExecutionFlags flags=ASubProcessExecutionFlags::DEFAULT)
 Launches executable.
 
static void executeAsAdministrator (const AString &applicationFile, const AString &args={}, const APath &workingDirectory={})
 Launches executable with administrator rights. (Windows only)
 
static AVector< _< AProcess > > all ()
 
static _< AProcessself ()
 
static _< AProcessfindAnotherSelfInstance (const AString &yourProjectName)
 tempFileName file name which will be used as lock
 
static _< AProcessfromPid (uint32_t pid)
 

Member Function Documentation

◆ getModuleName()

APath ASelfProcess::getModuleName ( )
inlineoverridevirtual
Returns
process' executable file name.

Implements AProcess.

◆ getPathToExecutable()

APath ASelfProcess::getPathToExecutable ( )
inlineoverridevirtual
Returns
path to the process' executable.

Implements AProcess.

◆ getPid()

uint32_t ASelfProcess::getPid ( ) const
inlineoverridevirtualnoexcept
Returns
process' ID.

Implements AProcess.

◆ processMemory()

size_t ASelfProcess::processMemory ( ) const
inlineoverridevirtual

Obtain process memory usage.

Implements AProcess.

◆ waitForExitCode()

int ASelfProcess::waitForExitCode ( )
inlineoverridevirtual

Wait for process to be finished and returns exit code.

Returns
exit code

Implements AProcess.


The documentation for this class was generated from the following file:
Inheritance diagram for ASelfProcess:
Collaboration diagram for ASelfProcess: