CommonLib
Loading...
Searching...
No Matches
hedgedev::csl::diag::process Namespace Reference

Functions

template<typename T_args = std::wstring_view>
bool start (const std::filesystem::path &in_path, const std::vector< T_args > &in_args, std::optional< std::filesystem::path > in_work)

Function Documentation

◆ start()

template<typename T_args = std::wstring_view>
bool hedgedev::csl::diag::process::start ( const std::filesystem::path & in_path,
const std::vector< T_args > & in_args = {},
std::optional< std::filesystem::path > in_work = {} )
inline

Starts a process.

Template Parameters
T_argsThe string type for the arguments.
Parameters
in_pathThe path to the executable to start.
in_argsThe command line arguments to pass into the process.
in_workThe working directory of the process.
Returns
true if the process was started successfully. Otherwise, false.