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

Process Builder. More...

#include <ProcessBuilder.h>

Public Member Functions

 ProcessBuilder (const std::string &exec)
 Initialize the process builder with the path of the executable file.
 
ProcessBuilder && arg (const std::string &arg) &&
 Specify a single argument for the builder.
 
Result< Process::Ptr, ErrorCodecreateEx () const
 Build the process.
 

Private Attributes

std::string exec
 
std::vector< std::string > args
 

Detailed Description

Process Builder.

Constructor & Destructor Documentation

◆ ProcessBuilder()

sese::system::ProcessBuilder::ProcessBuilder ( const std::string & exec)
explicit

Initialize the process builder with the path of the executable file.

Parameters
execExecutable file path

References exec.

Member Function Documentation

◆ arg()

sese::system::ProcessBuilder && sese::system::ProcessBuilder::arg ( const std::string & arg) &&

Specify a single argument for the builder.

Parameters
argArgument
Returns
ProcessBuilder&&

◆ createEx()

sese::Result< sese::system::Process::Ptr, sese::ErrorCode > sese::system::ProcessBuilder::createEx ( ) const

Build the process.

See also
sese::system::Process::createEx()
Returns
Result<Process::Ptr>

References sese::system::Process::createEx().

Member Data Documentation

◆ args

std::vector<std::string> sese::system::ProcessBuilder::args
private

◆ exec

std::string sese::system::ProcessBuilder::exec
private

Referenced by ProcessBuilder().


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