|
NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
This class spawns a new subprocess and executes a specific command. As soon as the subprocess object goes out of scope the subprocess is terminated. More...
#include <Subprocess.hpp>
Public Member Functions | |
| Subprocess (std::string cmd, std::vector< std::string > argv) | |
| Spawns a new subprocess with a specific cmd command and arguments. More... | |
| ~Subprocess () | |
| bool | kill () |
| uint64_t | getPid () |
This class spawns a new subprocess and executes a specific command. As soon as the subprocess object goes out of scope the subprocess is terminated.
| NES::Util::Subprocess::Subprocess | ( | std::string | cmd, |
| std::vector< std::string > | argv | ||
| ) |
Spawns a new subprocess with a specific cmd command and arguments.
| cmd | that should be executed |
| argv | arguments |
References magic_enum::enum_integer(), NES_DEBUG, NES_FATAL_ERROR, NES::Util::READ, and NES::Util::WRITE.
| NES::Util::Subprocess::~Subprocess | ( | ) |
| uint64_t NES::Util::Subprocess::getPid | ( | ) |
Method to get the pid of a process @retun pid
| bool NES::Util::Subprocess::kill | ( | ) |
Method to kill a process
References NES_ASSERT, and NES_DEBUG.
Referenced by ~Subprocess().