OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::ChildProcess Class Reference

子プロセスの作成と管理 More...

#include <ChildProcess.hpp>

Public Member Functions

SIV3D_NODISCARD_CXX20 ChildProcess ()
 
SIV3D_NODISCARD_CXX20 ChildProcess (FilePathView path, Pipe pipe)
 
SIV3D_NODISCARD_CXX20 ChildProcess (FilePathView path, StringView command=U"", Pipe pipe=Pipe::None_)
 
 ~ChildProcess ()
 
 operator bool () const
 
bool isValid () const
 
bool isRunning ()
 子プロセスが実行中であるかを返します。 More...
 
void wait ()
 子プロセスが終了するまで待機します。 More...
 
void terminate ()
 子プロセスを強制終了します。 More...
 
Optional< int32getExitCode ()
 子プロセスの終了コードを取得します。 More...
 
std::istream & istream ()
 
std::ostream & ostream ()
 

Detailed Description

子プロセスの作成と管理

Constructor & Destructor Documentation

◆ ChildProcess() [1/3]

SIV3D_NODISCARD_CXX20 s3d::ChildProcess::ChildProcess ( )

◆ ChildProcess() [2/3]

SIV3D_NODISCARD_CXX20 s3d::ChildProcess::ChildProcess ( FilePathView  path,
Pipe  pipe 
)

◆ ChildProcess() [3/3]

SIV3D_NODISCARD_CXX20 s3d::ChildProcess::ChildProcess ( FilePathView  path,
StringView  command = U"",
Pipe  pipe = Pipe::None_ 
)

◆ ~ChildProcess()

s3d::ChildProcess::~ChildProcess ( )

Member Function Documentation

◆ getExitCode()

Optional<int32> s3d::ChildProcess::getExitCode ( )

子プロセスの終了コードを取得します。

Returns
子プロセスの終了コード。取得に失敗した場合 none

◆ isRunning()

bool s3d::ChildProcess::isRunning ( )

子プロセスが実行中であるかを返します。

Returns
実行中である場合 true, それ以外の場合は false

◆ istream()

std::istream& s3d::ChildProcess::istream ( )

◆ isValid()

bool s3d::ChildProcess::isValid ( ) const

◆ operator bool()

s3d::ChildProcess::operator bool ( ) const
explicit

◆ ostream()

std::ostream& s3d::ChildProcess::ostream ( )

◆ terminate()

void s3d::ChildProcess::terminate ( )

子プロセスを強制終了します。

◆ wait()

void s3d::ChildProcess::wait ( )

子プロセスが終了するまで待機します。


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