wex v26.10.0
wex::process_data Class Reference

This class offers data for process. More...

#include <wex/factory/process-data.h>

Public Member Functions

 process_data (std::string exe=std::string(), 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_dataargs (const std::string &rhs)
 Sets args member.
const std::string & args_str () const
 Returns (the explicit separately specified or set) args as a string.
const std::string & exe () const
 Returns exe.
process_dataexe (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 std::string & start_dir () const
 Returns start_dir.
process_datastart_dir (const std::string &rhs)
 Sets start_dir.
const std::string & std_in () const
 Returns stdin.
process_datastd_in (const std::string &rhs)
 Sets stdin.

Detailed Description

This class offers data for process.

Constructor & Destructor Documentation

◆ process_data()

wex::process_data::process_data ( std::string exe = std::string(),
std::string args = std::string() )

Default constructor, sets the exe (and possible args).

Parameters
exethe exe
argsthe args

Member Function Documentation

◆ exe_path()

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.