Kind-of worked on the R-Tree; not really enough time to do much.
[aesalon.git] / include / monitor / Launcher.h
blob47166fc2f70eb1781d58c2662f37ffb629f30f50
1 /** Aesalon, a tool to visualize program behaviour in real time.
2 Copyright (C) 2009-2011, Aesalon development team.
4 Aesalon is distributed under the terms of the GNU GPLv3. See
5 the included file LICENSE for more information.
7 @file include/monitor/Launcher.h
8 */
10 #ifndef AesalonMonitor_Launcher_H
11 #define AesalonMonitor_Launcher_H
13 #include <sys/types.h>
14 #include "SHMReader.h"
16 namespace Monitor {
18 class Launcher {
19 char **m_argv;
20 pid_t m_targetPid;
21 SHMReader *m_shmReader;
22 public:
23 Launcher(char **argv);
24 ~Launcher();
26 void launch();
28 private:
29 void forkTarget();
30 void waitForChild();
31 void setupEnvironment();
34 } // namespace Monitor
36 #endif