ADTF
Loading...
Searching...
No Matches
process.h
Go to the documentation of this file.
1
14
15#ifndef A_UTIL_UTIL_PROCESS_PROCESS_HEADER_INCLUDED
16#define A_UTIL_UTIL_PROCESS_PROCESS_HEADER_INCLUDED
17
18#include <a_util/base/types.h>
20
21#include <string>
22
23namespace a_util {
24namespace process {
30
44uint32_t execute(const a_util::filesystem::Path& executable_file,
45 const std::string& arguments,
46 const a_util::filesystem::Path& working_dir,
47 bool wait_for_exit);
48
59uint32_t execute(const a_util::filesystem::Path& executable_file,
60 const std::string& arguments,
61 const a_util::filesystem::Path& working_dir,
62 std::string& std_out);
63
75uint32_t execute(const a_util::filesystem::Path& executable_file,
76 const std::string& arguments,
77 const a_util::filesystem::Path& working_dir,
78 std::string& std_out,
79 std::string& std_err);
80
90std::string getEnvVar(const std::string& environment_variable_name);
91
101std::string getEnvVar(const std::string& environment_variable_name,
102 const std::string& default_value);
103
116void setEnvVar(const std::string& environment_variable_name,
117 const std::string& environment_variable_value);
118
119} // namespace process
120} // namespace a_util
121
125
126#endif // A_UTIL_UTIL_PROCESS_PROCESS_HEADER_INCLUDED
Definition path.h:46
Serves as component for interaction with operating system processes.
Definition process.h:20
uint32_t execute(const a_util::filesystem::Path &executable_file, const std::string &arguments, const a_util::filesystem::Path &working_dir, bool wait_for_exit)
uint64_t getCurrentProcessId()
void setEnvVar(const std::string &environment_variable_name, const std::string &environment_variable_value)
std::string getEnvVar(const std::string &environment_variable_name)
Serves as the root component, with common functionality documented in core functionality.
Definition base.h:24