Sese Framework
2.3.0
A cross-platform framework
|
#include <Process.h>
Classes | |
class | ProcessImpl |
Public Types | |
using | Ptr = std::unique_ptr<Process> |
Public Member Functions | |
~Process () | |
int | wait () const noexcept |
bool | kill () const noexcept |
pid_t | getProcessId () const noexcept |
Static Public Member Functions | |
static Result< Ptr, ErrorCode > | createEx (const std::string &exec, const std::vector< std::string > &args={}) noexcept |
static pid_t | getCurrentProcessId () noexcept |
Private Member Functions | |
Process ()=default | |
Private Attributes | |
std::unique_ptr< ProcessImpl > | process_impl |
Process Class.
using sese::system::Process::Ptr = std::unique_ptr<Process> |
Process::~Process | ( | ) |
|
privatedefault |
|
staticnoexcept |
References sese::getErrorCode(), sese::getErrorString(), and MAKE_UNIQUE_PRIVATE.
Referenced by sese::system::ProcessBuilder::createEx().
|
staticnodiscardnoexcept |
Get the current process ID
References sese::system::Process::ProcessImpl::getCurrentProcessId().
|
nodiscardnoexcept |
|
nodiscardnoexcept |
|
nodiscardnoexcept |
|
private |
Referenced by getProcessId(), kill(), and wait().