1 #ifndef PROCESS_CONTROL_CLASS
2 #define PROCESS_CONTROL_CLASS
27 class process_entry_array;
28 class process_implementation_hider;
76 process_implementation_hider *_ptrs;
Provides a dynamically resizable ASCII character string.
Root object for any class that knows its own name.
a platform-independent way to acquire random numbers in a specific range.
Provides a bridge to the operating system for information on processes.
static bool find_process_in_list(const process_entry_array &processes, const basis::astring &app_name, structures::int_set &pids)
uses a pre-existing list of "processes" to search for the "app_name".
void sort_by_pid(process_entry_array &to_sort)
process_entry query_process(basis::un_int to_query)
returns the information for just one process.
bool zap_process(basis::un_int to_zap)
preemptively zaps the process "to_zap".
DEFINE_CLASS_NAME("process_control")
bool healthy() const
returns true if this object should be functional.
void sort_by_name(process_entry_array &to_sort)
bool query_processes(process_entry_array &to_fill)
finds the processes that are running and drops them into "to_fill".
virtual ~process_control()
a handy class that implements an array of process entries.
Encapsulates information about OS processes.
A simple object that wraps a templated set of ints.
unsigned int un_int
Abbreviated name for unsigned integers.