ProcessParameters Class
(ProjectExplorer::ProcessParameters)The ProcessParameters class aggregates all parameters needed to start a process. More...
| Header: | #include <ProcessParameters> |
Public Functions
| bool | commandMissing() const |
| Utils::FilePath | effectiveCommand() const |
| Utils::FilePath | effectiveWorkingDirectory() const |
| void | setCommandLine(const Utils::CommandLine &cmdLine) |
| void | setEnvironment(const Utils::Environment &env) |
| void | setMacroExpander(Utils::MacroExpander *mx) |
| void | setWorkingDirectory(const Utils::FilePath &workingDirectory) |
Detailed Description
It offers a set of functions which expand macros and environment variables inside the raw parameters to obtain final values for starting a process or for display purposes.
See also ProjectExplorer::AbstractProcessStep.
Member Function Documentation
bool ProcessParameters::commandMissing() const
Returns true if effectiveCommand() would return only a fallback.
Utils::FilePath ProcessParameters::effectiveCommand() const
Gets the fully expanded command name to run.
Utils::FilePath ProcessParameters::effectiveWorkingDirectory() const
Gets the fully expanded working directory.
void ProcessParameters::setCommandLine(const Utils::CommandLine &cmdLine)
Sets the command to run.
void ProcessParameters::setEnvironment(const Utils::Environment &env)
Sets the environment env for running the command.
Should be called from init().
void ProcessParameters::setMacroExpander(Utils::MacroExpander *mx)
Sets the macro expander mx to use on the command, arguments, and working dir.
Note: The caller retains ownership of the object.
void ProcessParameters::setWorkingDirectory(const Utils::FilePath &workingDirectory)
Sets the workingDirectory for the process for a build configuration.
Should be called from init().