Started implementing various things.
[aesalon.git] / include / monitor / program / Launcher.h
blobf91eaf66764f93042910b42e4e6ff2bef79f32ac
1 /**
2 Aesalon, a tool to visualize a program's behaviour at run-time.
3 Copyright (C) 2010, Aesalon Development Team.
5 Aesalon is distributed under the terms of the GNU GPLv3. For more
6 licensing information, see the file LICENSE included with the distribution.
8 @file include/monitor/program/Launcher.h
12 #ifndef AesalonMonitor_Program_Launcher_H
13 #define AesalonMonitor_Program_Launcher_H
15 #include <sys/types.h>
17 #include "config/Vault.h"
19 namespace Monitor {
20 namespace Program {
22 class Launcher {
23 private:
24 char **m_argv;
25 pid_t m_targetPid;
26 public:
27 Launcher(char **argv);
28 ~Launcher();
30 pid_t forkTarget();
32 void waitForChild();
33 private:
34 void setupEnvironment();
37 } // namespace Program
38 } // namespace Monitor
40 #endif