wex v24.04.0
Public Member Functions | List of all members
wex::process_data Class Reference

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_dataargs (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_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 auto & start_dir () const
 Returns start_dir.
 
process_datastart_dir (const std::string &rhs)
 Sets start_dir.
 
const auto & 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 ( 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.

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.