ExitStatus Class Reference

The exit status of a process. More...

#include <Process.h++>

List of all members.

Public Member Functions

 ExitStatus () throw ()
 Construct a new ExitStatus.
 ~ExitStatus () throw ()
 Destructor.
int getExitCode () const throw ()
 Get the exit code from the process.
int getExitSignal () const throw ()
 Get the exit signal.
bool isNormal () const throw ()
 Determine if the process exited normally.
uint64_t getUserTime () const throw ()
 Get the total amount of user-space time, in milliseconds, that the process consumed.
uint64_t getKernelTime () const throw ()
 Get the total amount of kernel-space time, in milliseconds, that the process consumed.
uint_t getMaxRSS () const throw ()
 Get the process's maximum resident set size, in pages.

Static Public Attributes

static const int SigAbort = SIGABRT
 Signal indicating the process was aborted.
static const int SigFloatingPointException = SIGFPE
 Signal indicating the process encountered a floating-point exception (such as division by zero).
static const int SigIllegalInstruction = SIGILL
 Signal indicating the process encountered an illegal machine instruction.
static const int SigKeyboardInterrupt = SIGINT
 Signal indicating the process received a keyboard interrupt (Control-C).
static const int SigSegmentationFault = SIGSEGV
 Signal indicating the process attempted an illegal memory access.
static const int SigTerminationRequest = SIGTERM
 Signal indicating the process received a termination request.
static const int SUCCESS = EXIT_SUCCESS
 The platform's default "success" exit status.
static const int FAILURE = EXIT_FAILURE
 The platform's default "failure" exit status.

Friends

class Process


Detailed Description

The exit status of a process.

Author:
Mark Lindner

Constructor & Destructor Documentation

ExitStatus (  )  throw () [inline]

Construct a new ExitStatus.

~ExitStatus (  )  throw () [inline]

Destructor.


Member Function Documentation

int getExitCode (  )  const throw () [inline]

Get the exit code from the process.

int getExitSignal (  )  const throw () [inline]

Get the exit signal.

Returns:
The signal number that caused the process to exit, or 0 if the process did not exit due to a signal.

uint64_t getKernelTime (  )  const throw () [inline]

Get the total amount of kernel-space time, in milliseconds, that the process consumed.

uint_t getMaxRSS (  )  const throw () [inline]

Get the process's maximum resident set size, in pages.

This information is not available on some systems (e.g., it is always 0 on Linux).

uint64_t getUserTime (  )  const throw () [inline]

Get the total amount of user-space time, in milliseconds, that the process consumed.

bool isNormal (  )  const throw () [inline]

Determine if the process exited normally.


Friends And Related Function Documentation

friend class Process [friend]


Member Data Documentation

const int FAILURE = EXIT_FAILURE [static]

The platform's default "failure" exit status.

const int SigAbort = SIGABRT [static]

Signal indicating the process was aborted.

const int SigFloatingPointException = SIGFPE [static]

Signal indicating the process encountered a floating-point exception (such as division by zero).

const int SigIllegalInstruction = SIGILL [static]

Signal indicating the process encountered an illegal machine instruction.

const int SigKeyboardInterrupt = SIGINT [static]

Signal indicating the process received a keyboard interrupt (Control-C).

const int SigSegmentationFault = SIGSEGV [static]

Signal indicating the process attempted an illegal memory access.

const int SigTerminationRequest = SIGTERM [static]

Signal indicating the process received a termination request.

const int SUCCESS = EXIT_SUCCESS [static]

The platform's default "success" exit status.


The documentation for this class was generated from the following files:

Generated on Sat Apr 17 23:03:09 2010 for libcommonc++ by  doxygen 1.5.9