wex v24.10.0
|
This class offers data for process. More...
#include <wex/factory/process-data.h>
Public Member Functions | |
process_data (const std::string &exe=std::string(), const std::string &args=std::string()) | |
Default constructor, sets the exe (and possible args). | |
const std::vector< std::string > | args () const |
Returns args as a vector of strings, or empty vector if no args were provided to the exe. | |
process_data & | args (const std::string &rhs) |
Sets args member. | |
const auto & | args_str () const |
Returns (the explicit separately specified or set) args as a string. | |
const auto & | exe () const |
Returns exe. | |
process_data & | exe (const std::string &rhs) |
Sets exe. | |
const std::string | exe_path () const |
Returns exe component as a possible path. | |
const std::string | log () const |
Logs info. | |
const auto & | start_dir () const |
Returns start_dir. | |
process_data & | start_dir (const std::string &rhs) |
Sets start_dir. | |
const auto & | std_in () const |
Returns stdin. | |
process_data & | std_in (const std::string &rhs) |
Sets stdin. | |
This class offers data for process.
wex::process_data::process_data | ( | const std::string & | exe = std::string(), |
const std::string & | args = std::string() ) |
Default constructor, sets the exe (and possible args).
You can choose to specify the args as cmdline option after the exe, or as separate args.
exe | the exe |
args | the args |
const std::string wex::process_data::exe_path | ( | ) | const |
Returns exe component as a possible path.
It searches the search path for the exe, and adds the path as prefix if found.