Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::system::Process::ProcessImpl Class Reference

Public Types

using StartupInfo = std::unique_ptr<STARTUPINFO>
 
using ProcessInfo = std::unique_ptr<PROCESS_INFORMATION>
 

Public Member Functions

 ProcessImpl (const sese::pid_t &pid)
 
int wait () const noexcept
 
sese::pid_t getProcessId () const noexcept
 
bool kill () const noexcept
 
int wait () const noexcept
 
bool kill () const noexcept
 
pid_t getProcessId () const noexcept
 
 ProcessImpl (StartupInfo startupinfo, ProcessInfo process_info)
 

Static Public Member Functions

static std::unique_ptr< ProcessImplcreateEx (const std::string &exec, const std::vector< std::string > &args) noexcept
 
static sese::pid_t getCurrentProcessId () noexcept
 
static std::unique_ptr< ProcessImplcreateEx (const std::string &exec, const std::vector< std::string > &args) noexcept
 
static pid_t getCurrentProcessId () noexcept
 

Public Attributes

StartupInfo startupinfo
 
ProcessInfo process_information
 

Private Attributes

sese::pid_t pid
 

Member Typedef Documentation

◆ ProcessInfo

using sese::system::Process::ProcessImpl::ProcessInfo = std::unique_ptr<PROCESS_INFORMATION>

◆ StartupInfo

using sese::system::Process::ProcessImpl::StartupInfo = std::unique_ptr<STARTUPINFO>

Constructor & Destructor Documentation

◆ ProcessImpl() [1/2]

sese::system::Process::ProcessImpl::ProcessImpl ( const sese::pid_t & pid)
inline

◆ ProcessImpl() [2/2]

sese::system::Process::ProcessImpl::ProcessImpl ( StartupInfo startupinfo,
ProcessInfo process_info )
inline

Member Function Documentation

◆ createEx() [1/2]

static std::unique_ptr< ProcessImpl > sese::system::Process::ProcessImpl::createEx ( const std::string & exec,
const std::vector< std::string > & args )
inlinestaticnoexcept

◆ createEx() [2/2]

static std::unique_ptr< ProcessImpl > sese::system::Process::ProcessImpl::createEx ( const std::string & exec,
const std::vector< std::string > & args )
inlinestaticnoexcept

◆ getCurrentProcessId() [1/2]

static sese::pid_t sese::system::Process::ProcessImpl::getCurrentProcessId ( )
inlinestaticnoexcept

◆ getCurrentProcessId() [2/2]

static pid_t sese::system::Process::ProcessImpl::getCurrentProcessId ( )
inlinestaticnoexcept

◆ getProcessId() [1/2]

sese::pid_t sese::system::Process::ProcessImpl::getProcessId ( ) const
inlinenoexcept

◆ getProcessId() [2/2]

pid_t sese::system::Process::ProcessImpl::getProcessId ( ) const
inlinenoexcept

◆ kill() [1/2]

bool sese::system::Process::ProcessImpl::kill ( ) const
inlinenoexcept

◆ kill() [2/2]

bool sese::system::Process::ProcessImpl::kill ( ) const
inlinenoexcept

◆ wait() [1/2]

int sese::system::Process::ProcessImpl::wait ( ) const
inlinenoexcept

◆ wait() [2/2]

int sese::system::Process::ProcessImpl::wait ( ) const
inlinenoexcept

Member Data Documentation

◆ pid

◆ process_information

◆ startupinfo

StartupInfo sese::system::Process::ProcessImpl::startupinfo

The documentation for this class was generated from the following files: