| 
    Jpp 19.3.0-rc.2
    
   the software that should make you happy 
   | 
 
System auxiliaries. More...
#include <iostream>#include <string>#include <vector>#include <unistd.h>#include "JLang/JException.hh"#include "JSystem/JShell.hh"#include "JSystem/JSysinfo.hh"Go to the source code of this file.
Namespaces | |
| namespace | JSYSTEM | 
| Auxiliary classes and methods for operating system calls.  | |
| namespace | JPP | 
| This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).  | |
Functions | |
| float | JSYSTEM::getMemoryUsage (JShell &shell, const pid_t pid) | 
| Get memory usage in percent of given process identifier.   | |
| float | JSYSTEM::getMemoryUsage (JShell &shell) | 
| Get memory usage in percent of this process.   | |
| float | JSYSTEM::getMemoryUsage () | 
| Get memory usage in percent of this process.   | |
| float | JSYSTEM::getCpuUsage (JShell &shell, const pid_t pid) | 
| Get cpu usage in percent of given process identifier.   | |
| float | JSYSTEM::getCpuUsage (JShell &shell) | 
| Get cpu usage in percent of this process.   | |
| float | JSYSTEM::getCpuUsage () | 
| Get cpu usage in percent of this process.   | |
| pid_t | JSYSTEM::getPID (JShell &shell, const char *process) | 
| Get process identifier.   | |
| pid_t | JSYSTEM::getPID (const char *process) | 
| Get process identifier.   | |
| pid_t | JSYSTEM::getParentID (JShell &shell, pid_t pid) | 
| Get parent process identifier.   | |
| pid_t | JSYSTEM::getParentID (const pid_t pid) | 
| Get parent process identifier.   | |
| std::string | JSYSTEM::getShell (JShell &shell) | 
| Get shell name.   | |
| std::string | JSYSTEM::getShell () | 
| Get shell name of this process.   | |
| unsigned long long int | JSYSTEM::getRAM () | 
| Get RAM of this CPU.   | |
| const std::string | JSYSTEM::which (JShell &shell, const char *process) | 
| Get process path.   | |
| const std::string | JSYSTEM::which (const char *process) | 
| Get process path.   | |
| void | JSYSTEM::gprint (const std::string &message) | 
| Print method.   | |
| int | JSYSTEM::gexit (int status, const std::string &message="") | 
| Exit method.   | |
| void | JSYSTEM::set_variable (const std::string &name, const std::string &value) | 
| Set environment variable.   | |
Variables | |
| static const char *const | JSYSTEM::SH = "sh" | 
| Shell names.   | |
| static const char *const | JSYSTEM::ZSH = "zsh" | 
| static const char *const | JSYSTEM::KSH = "ksh" | 
| static const char *const | JSYSTEM::BASH = "bash" | 
| static const char *const | JSYSTEM::CSH = "csh" | 
| static const char *const | JSYSTEM::TCSH = "tcsh" | 
| static const std::string | JSYSTEM::SPECIAL_CHARACTERS = "\"' <>[](){};$#" | 
System auxiliaries.
Definition in file JSystemToolkit.hh.