boost::process::status Class Reference

#include <status.hpp>

Inheritance diagram for boost::process::status:

boost::process::posix_status

List of all members.

Public Member Functions

bool exited () const
int exit_status () const

Protected Member Functions

 status (int flags)

Protected Attributes

int flags_

Friends

class child


Detailed Description

Status returned by a finalized child process.

This class represents the status returned by a child process after it has terminated. It only provides that information available under all supported platforms.

See also:
posix_status

Constructor & Destructor Documentation

boost::process::status::status ( int  flags  )  [inline, protected]

Creates a status object based on exit information.

Creates a new status object representing the exit status of a child process.

Parameters:
flags In a POSIX system this parameter contains the flags returned by the waitpid() call. In a Windows system it contains the exit code only.


Member Function Documentation

bool boost::process::status::exited (  )  const [inline]

Returns whether the process exited gracefully or not.

int boost::process::status::exit_status (  )  const [inline]

If exited, returns the exit code.

If the process exited, returns the exit code it returned.

Precondition:
exited() is true.


Member Data Documentation

OS-specific codification of exit status.


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

Generated on Mon Sep 22 01:00:43 2008 by  doxygen 1.5.5