AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AOtherProcess Class Reference

Public Member Functions

 AOtherProcess (pid_t handle)
 
int waitForExitCode () override
 Wait for process to be finished and returns exit code. More...
 
APath getModuleName () override
 
APath getPathToExecutable () override
 
uint32_t getPid () const noexcept override
 
size_t processMemory () const override
 Obtain process memory usage. More...
 
 AOtherProcess (HANDLE handle)
 
APath getPathToExecutable () override
 
int waitForExitCode () override
 Wait for process to be finished and returns exit code. More...
 
APath getModuleName () override
 
uint32_t getPid () const noexcept override
 
size_t processMemory () const override
 Obtain process memory usage. More...
 
- 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. More...
 
static _< AChildProcessmake (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 _< AProcessself ()
 
static _< AProcessfindAnotherSelfInstance (const AString &yourProjectName)
 tempFileName file name which will be used as lock More...
 
static _< AProcessfromPid (uint32_t pid)
 

Member Function Documentation

◆ getModuleName() [1/2]

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

Implements AProcess.

◆ getModuleName() [2/2]

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

Implements AProcess.

◆ getPathToExecutable() [1/2]

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

Implements AProcess.

◆ getPathToExecutable() [2/2]

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

Implements AProcess.

◆ getPid() [1/2]

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

Implements AProcess.

◆ getPid() [2/2]

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

Implements AProcess.

◆ processMemory() [1/2]

size_t AOtherProcess::processMemory ( ) const
inlineoverridevirtual

Obtain process memory usage.

Implements AProcess.

◆ processMemory() [2/2]

size_t AOtherProcess::processMemory ( ) const
inlineoverridevirtual

Obtain process memory usage.

Implements AProcess.

◆ waitForExitCode() [1/2]

int AOtherProcess::waitForExitCode ( )
inlineoverridevirtual

Wait for process to be finished and returns exit code.

Returns
exit code

Implements AProcess.

◆ waitForExitCode() [2/2]

int AOtherProcess::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 files:
Inheritance diagram for AOtherProcess:
Collaboration diagram for AOtherProcess: