00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __libutilxx__sella__util__Process_H__
00010 #define __libutilxx__sella__util__Process_H__
00011
00012 #include "../../common.h"
00013 #include "ProcessException.h"
00014
00015 #include <string>
00016
00017 namespace sella {
00018 namespace util {
00019 class Process;
00020 }
00021 }
00022
00023 class sella::util::Process {
00024 public:
00025 static std::string getBaseName(void) throw ();
00026 static std::string getDirName(void) throw ();
00027 static std::string getPath(void) throw ();
00028 static void setName(const std::string &name) throw (ProcessException);
00029 static std::string getName(void) throw (ProcessException);
00030 static void setTitle(const std::string &title) throw (ProcessException);
00031 static pid_t getPID(void) throw ();
00032 static pid_t getParentPID(void) throw ();
00033 static std::string runCommand(const std::string &command) throw (ProcessException);
00034 static std::string stackTrace(const std::string &executableFilename) throw ();
00035 };
00036
00037 #endif
00038
00039
00040
00041