Jpp  16.0.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Enumerations | Functions | Variables
JSYSTEM Namespace Reference

Auxiliary classes and methods for operating system calls. More...

Classes

struct  JDateAndTime
 Auxililary class to get date and time. More...
 
struct  JGlob
 Auxiliary class to list files. More...
 
class  JKeypress
 Enable unbuffered terminal input. More...
 
class  JProcess
 Streaming of input and output from Linux command. More...
 
class  JShell
 The JShell clas can be used to interact with the shell via I/O streams. More...
 
struct  JStat
 Auxiliary class for file status. More...
 
struct  JSysinfo
 Auxiliary class for system information. More...
 
struct  ls
 Auxiliary data structure to list files in directory. More...
 
struct  JLocalTime
 Auxililary class to local get time in micro seconds. More...
 
struct  JUTSName
 Auxiliary class for operating system information. More...
 

Typedefs

typedef long long int localtime_t
 Type definition of local time. More...
 

Enumerations

enum  JDateAndTimeFormat { HUMAN_READABLE = 0, ISO8601 = 1 }
 Date and time formats. More...
 

Functions

const char * getDate (const JDateAndTimeFormat option=ISO8601)
 Get ASCII formatted date. More...
 
const char * getTime (const JDateAndTimeFormat option=ISO8601)
 Get ASCII formatted time. More...
 
std::string getHostname ()
 Get host name. More...
 
std::string getHostname (const int ip)
 Get host name. More...
 
int getIPnumber (const std::string &host_name)
 Get IP number. More...
 
int getIPnumber ()
 Get IP number. More...
 
std::string getIPaddress (const int ip)
 Get IP address (decimal-dot notation). More...
 
std::string getIPaddress ()
 Get IP address (decimal-dot notation). More...
 
unsigned short getSubaddress (const int ip)
 Get host identifier within network. More...
 
unsigned short getSubaddress ()
 Get host identifier within network. More...
 
std::vector< std::string > getListOfIPaddresses ()
 Get list of IP address (decimal-dot notation). More...
 
float getMemoryUsage (JShell &shell, const pid_t pid)
 Get memory usage in percent of given process identifier. More...
 
float getMemoryUsage (JShell &shell)
 Get memory usage in percent of this process. More...
 
float getMemoryUsage ()
 Get memory usage in percent of this process. More...
 
float getCpuUsage (JShell &shell, const pid_t pid)
 Get cpu usage in percent of given process identifier. More...
 
float getCpuUsage (JShell &shell)
 Get cpu usage in percent of this process. More...
 
float getCpuUsage ()
 Get cpu usage in percent of this process. More...
 
pid_t getPID (JShell &shell, const char *process)
 Get process identifier. More...
 
pid_t getPID (const char *process)
 Get process identifier. More...
 
pid_t getParentID (JShell &shell, pid_t pid)
 Get parent process identifier. More...
 
pid_t getParentID (const pid_t pid)
 Get parent process identifier. More...
 
std::string getShell (JShell &shell)
 Get shell name. More...
 
std::string getShell ()
 Get shell name of this process. More...
 
unsigned long long int getRAM ()
 Get RAM of this CPU. More...
 
const std::string which (JShell &shell, const char *process)
 Get process path. More...
 
const std::string which (const char *process)
 Get process path. More...
 
void gprint (const std::string &message)
 Print method. More...
 
int gexit (int status, const std::string &message="")
 Exit method. More...
 
void set_variable (const std::string &name, const std::string &value)
 Set environment variable. More...
 

Variables

static JDateAndTime getDateAndTime
 Function object to get ASCII formatted date and time. More...
 
static JGlob getFilenames
 Function object to get list of files for given pattern. More...
 
static const JCompareEndian compareEndian
 Function object operator. More...
 
static JStat getFileStatus
 Function object for file status. More...
 
static const char *const SH = "sh"
 Shell names. More...
 
static const char *const ZSH = "zsh"
 
static const char *const KSH = "ksh"
 
static const char *const BASH = "bash"
 
static const char *const CSH = "csh"
 
static const char *const TCSH = "tcsh"
 
static const std::string SPECIAL_CHARACTERS = "\"' <>[](){};$#"
 
static const JLocalTime getLocalTime
 Function object to get local time in micro seconds. More...
 

Detailed Description

Auxiliary classes and methods for operating system calls.

Author
mdejong

Typedef Documentation

typedef long long int JSYSTEM::localtime_t

Type definition of local time.

Definition at line 21 of file JSystem/JTime.hh.

Enumeration Type Documentation

Date and time formats.

Enumerator
HUMAN_READABLE 

Human readable format (Www Mmm dd hh:mm:ss yyyy)

ISO8601 

ISO-8601 standard.

Definition at line 23 of file JSystem/JDate.hh.

23  {
24  HUMAN_READABLE = 0, //!< Human readable format (Www Mmm dd hh:mm:ss yyyy)
25  ISO8601 = 1 //!< ISO-8601 standard
26  };
Human readable format (Www Mmm dd hh:mm:ss yyyy)
ISO-8601 standard.

Function Documentation

const char* JSYSTEM::getDate ( const JDateAndTimeFormat  option = ISO8601)
inline

Get ASCII formatted date.

Parameters
optionformatting option
Returns
date

Definition at line 35 of file JSystem/JDate.hh.

36  {
37  static time_t ts;
38  static const int MAX_SIZE = 256;
39  static char buffer[MAX_SIZE];
40 
41  time(&ts);
42 
43  switch (option) {
44 
45  case HUMAN_READABLE:
46  strftime(buffer, MAX_SIZE, "%x", localtime(&ts));
47  break;
48 
49  case ISO8601:
50  strftime(buffer, MAX_SIZE, "%F", localtime(&ts));
51  break;
52 
53  default:
54  THROW(JLANG::JValueOutOfRange, "JDate::getDate(): Invalid formatting option.");
55  }
56 
57  return buffer;
58  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
Human readable format (Www Mmm dd hh:mm:ss yyyy)
ISO-8601 standard.
Exception for accessing a value in a collection that is outside of its range.
Definition: JException.hh:162
const char* JSYSTEM::getTime ( const JDateAndTimeFormat  option = ISO8601)
inline

Get ASCII formatted time.

Parameters
optionformatting option
Returns
time

Definition at line 67 of file JSystem/JDate.hh.

68  {
69  static time_t ts;
70  static const int MAX_SIZE = 256;
71  static char buffer[MAX_SIZE];
72 
73  time(&ts);
74 
75  switch (option) {
76 
77  case HUMAN_READABLE:
78  strftime(buffer, MAX_SIZE, "%X %Z", localtime(&ts));
79  break;
80 
81  case ISO8601:
82  strftime(buffer, MAX_SIZE, "%T%z", localtime(&ts));
83  break;
84 
85  default:
86  THROW(JLANG::JValueOutOfRange, "JDate::getTime(): Invalid formatting option.");
87  }
88 
89  return buffer;
90  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
Human readable format (Www Mmm dd hh:mm:ss yyyy)
ISO-8601 standard.
Exception for accessing a value in a collection that is outside of its range.
Definition: JException.hh:162
std::string JSYSTEM::getHostname ( )
inline

Get host name.

Note that to obtain a host name including the domain name, JSYSTEM::getHostname(JSYSTEM::getIPnumber()) should be used.

Returns
host name

Definition at line 77 of file JNetwork.hh.

78  {
79  const size_t MAXIMUM_LENGTH = 256;
80  char buffer[MAXIMUM_LENGTH];
81 
82  if (gethostname(buffer, MAXIMUM_LENGTH) == 0)
83  return std::string(buffer);
84  else
85  throw JSystemException("Unknown host name.");
86  }
std::string JSYSTEM::getHostname ( const int  ip)
inline

Get host name.

Parameters
ipIP number
Returns
host name

Definition at line 96 of file JNetwork.hh.

97  {
98  in_addr buffer;
99 
100  buffer.s_addr = ip;
101 
102  hostent* p = gethostbyaddr(&buffer, sizeof(in_addr), AF_INET);
103 
104  if (p != NULL)
105  return std::string(p->h_name);
106  else
107  throw JSystemException("Unknown IP address.");
108  }
int JSYSTEM::getIPnumber ( const std::string &  host_name)
inline

Get IP number.

Parameters
host_namehost name
Returns
IP number

Definition at line 117 of file JNetwork.hh.

118  {
119  int ip = -1;
120 
121  std::string buffer = host_name;
122 
123  if (buffer == "" || buffer == "localhost") {
124  buffer = getHostname();
125  }
126 
127  const hostent* hp = gethostbyname(buffer.c_str());
128 
129  if (hp != NULL) {
130  memcpy((char *) &ip, hp->h_addr, sizeof(int));
131  }
132 
133  return ip;
134  }
std::string getHostname()
Get host name.
Definition: JNetwork.hh:77
int JSYSTEM::getIPnumber ( )
inline

Get IP number.

Returns
IP number

Definition at line 142 of file JNetwork.hh.

143  {
144  return getIPnumber(getHostname());
145  }
int getIPnumber(const std::string &host_name)
Get IP number.
Definition: JNetwork.hh:117
std::string getHostname()
Get host name.
Definition: JNetwork.hh:77
std::string JSYSTEM::getIPaddress ( const int  ip)
inline

Get IP address (decimal-dot notation).

Parameters
ipIP number
Returns
IP address

Definition at line 154 of file JNetwork.hh.

155  {
156  std::ostringstream os;
157 
158  if (compareEndian())
159  os << ((ip >> 24) & 0xFF) << '.'
160  << ((ip >> 16) & 0xFF) << '.'
161  << ((ip >> 8) & 0xFF) << '.'
162  << ((ip >> 0) & 0xFF);
163  else
164  os << ((ip >> 0) & 0xFF) << '.'
165  << ((ip >> 8) & 0xFF) << '.'
166  << ((ip >> 16) & 0xFF) << '.'
167  << ((ip >> 24) & 0xFF);
168 
169  return os.str();
170  }
static const JCompareEndian compareEndian
Function object operator.
Definition: JNetwork.hh:66
std::string JSYSTEM::getIPaddress ( )
inline

Get IP address (decimal-dot notation).

Returns
IP address

Definition at line 178 of file JNetwork.hh.

179  {
180  return getIPaddress(getIPnumber());
181  }
int getIPnumber(const std::string &host_name)
Get IP number.
Definition: JNetwork.hh:117
std::string getIPaddress(const int ip)
Get IP address (decimal-dot notation).
Definition: JNetwork.hh:154
unsigned short JSYSTEM::getSubaddress ( const int  ip)
inline

Get host identifier within network.

Parameters
ipIP number
Returns
ID

Definition at line 190 of file JNetwork.hh.

191  {
192  if (compareEndian())
193  return (unsigned short) (ip & 0x0000FFFF);
194  else
195  return (unsigned short) (((ip & 0xFF000000) >> 24) |
196  ((ip & 0x00FF0000) >> 8) );
197  }
static const JCompareEndian compareEndian
Function object operator.
Definition: JNetwork.hh:66
unsigned short JSYSTEM::getSubaddress ( )
inline

Get host identifier within network.

Returns
ID

Definition at line 205 of file JNetwork.hh.

206  {
207  return getSubaddress(getIPnumber());
208  }
int getIPnumber(const std::string &host_name)
Get IP number.
Definition: JNetwork.hh:117
unsigned short getSubaddress(const int ip)
Get host identifier within network.
Definition: JNetwork.hh:190
std::vector<std::string> JSYSTEM::getListOfIPaddresses ( )
inline

Get list of IP address (decimal-dot notation).

Returns
IP address

Definition at line 216 of file JNetwork.hh.

217  {
218  using namespace std;
219 
220  const size_t MAXIMUM_LENGTH = 256;
221  char buffer[MAXIMUM_LENGTH];
222 
224 
225  struct ifaddrs *p = NULL;
226 
227  if (getifaddrs(&p) == 0) {
228 
229  for ( ; p != NULL; p = p->ifa_next) {
230 
231  if (p->ifa_addr->sa_family == AF_INET ||
232  p->ifa_addr->sa_family == AF_INET6) {
233 
234  if (getnameinfo( p->ifa_addr,
235  (p->ifa_addr->sa_family == AF_INET) ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6),
236  buffer, MAXIMUM_LENGTH,
237  NULL, 0, NI_NUMERICHOST) == 0) {
238 
239  result.push_back(buffer);
240  }
241  }
242  }
243  }
244 
245  freeifaddrs(p);
246 
247  return result;
248  }
return result
Definition: JPolint.hh:743
float JSYSTEM::getMemoryUsage ( JShell shell,
const pid_t  pid 
)
inline

Get memory usage in percent of given process identifier.

Parameters
shellshell interface
pidprocess identifier
Returns
memory usage [%]

Definition at line 52 of file JSystemToolkit.hh.

53  {
54  using namespace std;
55 
56  float value = 0.0;
57 
58  shell << "ps -o %mem= -p " << pid << endl;
59 
60  if (shell.get(value))
61  return value;
62  else
63  THROW(JSystemException, "No process data for PID " << pid);
64  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
bool get(T &value)
Get value.
Definition: JShell.hh:106
float JSYSTEM::getMemoryUsage ( JShell shell)
inline

Get memory usage in percent of this process.

Parameters
shellshell interface
Returns
memory usage [%]

Definition at line 73 of file JSystemToolkit.hh.

74  {
75  return getMemoryUsage(shell, getpid());
76  }
float getMemoryUsage(JShell &shell, const pid_t pid)
Get memory usage in percent of given process identifier.
float JSYSTEM::getMemoryUsage ( )
inline

Get memory usage in percent of this process.

Returns
memory usage [%]

Definition at line 84 of file JSystemToolkit.hh.

85  {
86  return getMemoryUsage(JShell::getInstance(), getpid());
87  }
float getMemoryUsage(JShell &shell, const pid_t pid)
Get memory usage in percent of given process identifier.
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
float JSYSTEM::getCpuUsage ( JShell shell,
const pid_t  pid 
)
inline

Get cpu usage in percent of given process identifier.

Parameters
shellshell interface
pidprocess identifier
Returns
cpu usage [%]

Definition at line 97 of file JSystemToolkit.hh.

98  {
99  using namespace std;
100 
101  float value = 0.0;
102 
103  shell << "ps -o %cpu= -p " << pid << endl;
104 
105  if (shell.get(value))
106  return value;
107  else
108  THROW(JSystemException, "No process data for PID " << pid);
109  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
bool get(T &value)
Get value.
Definition: JShell.hh:106
float JSYSTEM::getCpuUsage ( JShell shell)
inline

Get cpu usage in percent of this process.

Parameters
shellshell interface
Returns
cpu usage [%]

Definition at line 118 of file JSystemToolkit.hh.

119  {
120  return getCpuUsage(shell, getpid());
121  }
float getCpuUsage(JShell &shell, const pid_t pid)
Get cpu usage in percent of given process identifier.
float JSYSTEM::getCpuUsage ( )
inline

Get cpu usage in percent of this process.

Returns
cpu usage [%]

Definition at line 129 of file JSystemToolkit.hh.

130  {
131  return getCpuUsage(JShell::getInstance(), getpid());
132  }
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
float getCpuUsage(JShell &shell, const pid_t pid)
Get cpu usage in percent of given process identifier.
pid_t JSYSTEM::getPID ( JShell shell,
const char *  process 
)
inline

Get process identifier.

Parameters
shellshell interface
processprocess name
Returns
process identifier

Definition at line 142 of file JSystemToolkit.hh.

143  {
144  using namespace std;
145 
146  pid_t pid = -1;
147 
148  shell << "ps -o pid= -C " << process << endl;
149 
150  if (shell.get(pid))
151  return pid;
152  else
153  THROW(JSystemException, "No process " << process);
154  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
bool get(T &value)
Get value.
Definition: JShell.hh:106
pid_t JSYSTEM::getPID ( const char *  process)
inline

Get process identifier.

Parameters
processprocess name
Returns
process identifier

Definition at line 163 of file JSystemToolkit.hh.

164  {
166  }
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
pid_t getPID(JShell &shell, const char *process)
Get process identifier.
pid_t JSYSTEM::getParentID ( JShell shell,
pid_t  pid 
)
inline

Get parent process identifier.

Parameters
shellshell interface
pidprocess identifier
Returns
parent identifier

Definition at line 176 of file JSystemToolkit.hh.

177  {
178  using namespace std;
179 
180  shell << "ps -o ppid= -p " << pid << endl;
181 
182  if (shell.get(pid))
183  return pid;
184  else
185  THROW(JSystemException, "No parent identifier " << pid);
186  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
bool get(T &value)
Get value.
Definition: JShell.hh:106
pid_t JSYSTEM::getParentID ( const pid_t  pid)
inline

Get parent process identifier.

Parameters
pidprocess identifier
Returns
parent identifier

Definition at line 195 of file JSystemToolkit.hh.

196  {
197  return getParentID(JShell::getInstance(), getpid());
198  }
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
pid_t getParentID(JShell &shell, pid_t pid)
Get parent process identifier.
std::string JSYSTEM::getShell ( JShell shell)
inline

Get shell name.

Parameters
shellshell interface
Returns
shell name

Definition at line 207 of file JSystemToolkit.hh.

208  {
209  using namespace std;
210 
211  static string value = "";
212 
213  if (value == "") {
214 
215  pid_t pid = getppid();
216 
217  shell << "ps -o ppid= -o args= -p " << pid << endl;
218 
219  if (shell >> pid >> value) {
220 
221  shell.flush();
222 
223  if (!value.empty() && value[0] == '-') {
224  value = value.substr(1);
225  }
226 
227  } else {
228 
229  static_cast<istream&>(shell).clear();
230  shell.flush();
231 
232  THROW(JSystemException, "No shell");
233  }
234  }
235 
236  return value;
237  }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
JShell & flush(std::ostream &out=null)
Extracts characters from this shell and flush them to the given output stream until the prompt is rea...
Definition: JShell.hh:184
std::string JSYSTEM::getShell ( )
inline

Get shell name of this process.

Returns
shell name

Definition at line 245 of file JSystemToolkit.hh.

246  {
247  return getShell(JShell::getInstance());
248  }
std::string getShell(JShell &shell)
Get shell name.
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
unsigned long long int JSYSTEM::getRAM ( )
inline

Get RAM of this CPU.

Returns
number of bytes

Definition at line 256 of file JSystemToolkit.hh.

257  {
258  const JSysinfo info;
259 
260  return info.getTotalRAM();
261  }
Auxiliary class for system information.
Definition: JSysinfo.hh:21
unsigned long long int getTotalRAM() const
Get total RAM.
Definition: JSysinfo.hh:38
const std::string JSYSTEM::which ( JShell shell,
const char *  process 
)
inline

Get process path.

Parameters
shellshell interface
processprocess name
Returns
path

Definition at line 271 of file JSystemToolkit.hh.

272  {
273  using namespace std;
274 
275  string buffer;
276 
277  shell << "which " << process << endl;
278 
279  shell.getline(buffer);
280 
281  shell.flush();
282 
283  return buffer;
284  }
JShell & flush(std::ostream &out=null)
Extracts characters from this shell and flush them to the given output stream until the prompt is rea...
Definition: JShell.hh:184
bool getline(std::string &buffer, const char eol= '\n')
Get line of text.
Definition: JShell.hh:137
const std::string JSYSTEM::which ( const char *  process)
inline

Get process path.

Parameters
processprocess name
Returns
path

Definition at line 293 of file JSystemToolkit.hh.

294  {
295  return which(JShell::getInstance(), process);
296  }
T & getInstance(const T &object)
Get static instance from temporary object.
Definition: JObject.hh:75
const std::string which(JShell &shell, const char *process)
Get process path.
void JSYSTEM::gprint ( const std::string &  message)
inline

Print method.

Parameters
messagemessage

Definition at line 331 of file JSystemToolkit.hh.

332  {
333  using namespace std;
334 
335  istringstream is(message);
336 
337  for (string buffer; getline(is, buffer); ) {
338 
339  if (!buffer.empty()) {
340 
341  for (string::size_type i = 0; i != buffer.size(); ++i) {
342  if (SPECIAL_CHARACTERS.find(buffer[i]) != string::npos) {
343  buffer.insert(i++, "\\");
344  }
345  }
346 
347  cout << "echo " << buffer << ";" << endl;
348  }
349  }
350  }
is
Definition: JDAQCHSM.chsm:167
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
Definition: JString.hh:478
static const std::string SPECIAL_CHARACTERS
Special characters.
Definition: JDBReader.hh:38
int JSYSTEM::gexit ( int  status,
const std::string &  message = "" 
)
inline

Exit method.

Parameters
statusexit status
messageoptional message

Definition at line 359 of file JSystemToolkit.hh.

360  {
361  using namespace std;
362 
363  gprint(message);
364 
365  cout << "exit " << status << ";" << endl;
366 
367  return status;
368  }
void gprint(const std::string &message)
Print method.
void JSYSTEM::set_variable ( const std::string &  name,
const std::string &  value 
)
inline

Set environment variable.

This method prints the shell command to set the variable with the given name to the specified value.

Parameters
namevariable name
valuevariable value

Definition at line 379 of file JSystemToolkit.hh.

380  {
381  using namespace std;
382  using namespace JSYSTEM;
383 
384  static const string shell = getShell();
385 
386  string buffer(value);
387 
388  if (buffer.find(' ') != string::npos) {
389  buffer = "\"" + buffer + "\"";
390  }
391 
392  if (shell.find(ZSH) != string::npos ||
393  shell.find(KSH) != string::npos ||
394  shell.find(BASH) != string::npos) {
395 
396  cout << "export " << name << "=" << buffer << ";" << endl;
397 
398  } else if (shell.find(CSH) != string::npos ||
399  shell.find(TCSH) != string::npos) {
400 
401  cout << "setenv " << name << " " << buffer << ";" << endl;
402 
403  } else {
404 
405  THROW(JSystemException, "unknown shell " << shell);
406  }
407  }
std::string getShell(JShell &shell)
Get shell name.
static const char *const TCSH
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
static const char *const ZSH
static const char *const BASH
static const char *const KSH
static const char *const CSH

Variable Documentation

JDateAndTime JSYSTEM::getDateAndTime
static

Function object to get ASCII formatted date and time.

Definition at line 295 of file JSystem/JDate.hh.

JGlob JSYSTEM::getFilenames
static

Function object to get list of files for given pattern.

Definition at line 86 of file JGlob.hh.

const JCompareEndian JSYSTEM::compareEndian
static

Function object operator.

Returns
true if network and system endianess same; else false

Definition at line 66 of file JNetwork.hh.

JStat JSYSTEM::getFileStatus
static

Function object for file status.

Definition at line 173 of file JStat.hh.

const char* const JSYSTEM::SH = "sh"
static

Shell names.

Definition at line 34 of file JSystemToolkit.hh.

const char* const JSYSTEM::ZSH = "zsh"
static

Definition at line 35 of file JSystemToolkit.hh.

const char* const JSYSTEM::KSH = "ksh"
static

Definition at line 36 of file JSystemToolkit.hh.

const char* const JSYSTEM::BASH = "bash"
static

Definition at line 37 of file JSystemToolkit.hh.

const char* const JSYSTEM::CSH = "csh"
static

Definition at line 38 of file JSystemToolkit.hh.

const char* const JSYSTEM::TCSH = "tcsh"
static

Definition at line 39 of file JSystemToolkit.hh.

const std::string JSYSTEM::SPECIAL_CHARACTERS = "\"' <>[](){};$#"
static

Definition at line 41 of file JSystemToolkit.hh.

const JLocalTime JSYSTEM::getLocalTime
static

Function object to get local time in micro seconds.

Definition at line 61 of file JSystem/JTime.hh.