10#ifndef OKSSYSTEM_PROCESS
11#define OKSSYSTEM_PROCESS
38 static const char*
exit_text(
int return_value) ;
41 static
void set_name(const
std::
string &name) throw() ;
47 operator pid_t() const throw() ;
48 int join(
bool throw_non_zero=false) const ;
49 void signal(
int signal) const ;
Wrapper for process manipulation.
static const int TERMINATION_WAIT
wait time before deciding a termination signal did not work
static const Process * instance()
static const char *const OK_EXIT_NAME
string to describe 0 exit value
static const char * exit_text(int return_value)
the textual description of standard exit codes
static const char *const SIGNAL_EXIT_NAME
string to describe signal exited value
bool equals(const Process &other) const
Comparison method.
static const int TEST_BASE_VALUE
first value for test manager exit codes
pid_t m_process_id
process identifier
void terminate() const
Terminate the process.
static const char *const SYS_EXITS_NAMES[]
names for standard system exit values
static void set_name(const std::string &name)
static const int TEST_MAX_VALUE
last value for test manager exit codes
static std::string exit_pretty(int return_value)
static const char *const TEST_EXITS_NAMES[]
names for testing exit values
pid_t process_id() const
the id of the process
static Process * s_instance
singleton instance
std::string m_process_name
process name - only to be used for display
std::string to_string() const
String conversion method.