ASAPCabinetFE
 
Loading...
Searching...
No Matches
process_handler.h
Go to the documentation of this file.
1
10#ifndef PROCESS_HANDLER_H
11#define PROCESS_HANDLER_H
12
13#include <string>
14
19class IConfigService;
20
30public:
39 ProcessHandler(const std::string& exeDir, IConfigService* configManager);
40
49 bool launchVPX(const std::string& vpxFile);
50
56 void terminateVPX();
57
66 std::string shellEscape(const std::string& str);
67
68private:
69 std::string exeDir_;
70 IConfigService* configManager_;
71 pid_t vpxPid_;
72};
73
74#endif // PROCESS_HANDLER_H
Interface for configuration services (forward declaration).
Definition iconfig_service.h:30
Manages launching and terminating VPX processes.
Definition process_handler.h:29
std::string shellEscape(const std::string &str)
Escapes a string for safe shell usage.
Definition process_handler.cpp:66
bool launchVPX(const std::string &vpxFile)
Launches a VPX process.
Definition process_handler.cpp:16
void terminateVPX()
Terminates the running VPX process.
Definition process_handler.cpp:49