|
blocxx
|
Portable process status. More...
#include <Process.hpp>
Classes | |
| struct | Repr |
Public Member Functions | |
| Status (ProcId wpid, int status) | |
| Status (int rep1, int rep2, Repr) | |
| Status () | |
| bool | running () const |
| bool | exitTerminated () const |
| int | exitStatus () const |
| bool | terminatedSuccessfully () const |
| bool | signalTerminated () const |
| bool | terminated () const |
| int | termSignal () const |
| bool | stopped () const |
| int | stopSignal () const |
| String | toString () const |
| Get a string representation of the status suitable for debugging or logging. | |
| int | getPOSIXwaitpidStatus () const |
| Get the result from waitpid() | |
| void | repr (int &rep1, int &rep2) const |
Private Attributes | |
| bool | m_status_available |
| int | m_status |
Portable process status.
Definition at line 122 of file Process.hpp.
running(), stopped() and terminated() is true.| wpid | return value from waitpid |
| status | status value assigned by waitpid. |
Definition at line 102 of file Process.cpp.
Definition at line 108 of file Process.cpp.
| BLOCXX_NAMESPACE::Process::Status::Status | ( | ) |
running() is true Definition at line 167 of file Process.cpp.
| int BLOCXX_NAMESPACE::Process::Status::exitStatus | ( | ) | const |
exitTerminated() Definition at line 186 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status, and BLOCXX_NAMESPACE::operator==().
| bool BLOCXX_NAMESPACE::Process::Status::exitTerminated | ( | ) | const |
Definition at line 181 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status, and BLOCXX_NAMESPACE::operator==().
| int BLOCXX_NAMESPACE::Process::Status::getPOSIXwaitpidStatus | ( | ) | const |
Get the result from waitpid()
Definition at line 191 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status.
Definition at line 218 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status, and BLOCXX_NAMESPACE::operator==().
| bool BLOCXX_NAMESPACE::Process::Status::running | ( | ) | const |
Definition at line 171 of file Process.cpp.
| bool BLOCXX_NAMESPACE::Process::Status::signalTerminated | ( | ) | const |
Definition at line 196 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status, and BLOCXX_NAMESPACE::operator==().
| bool BLOCXX_NAMESPACE::Process::Status::stopped | ( | ) | const |
Definition at line 206 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status, and BLOCXX_NAMESPACE::operator==().
| int BLOCXX_NAMESPACE::Process::Status::stopSignal | ( | ) | const |
stopped() Definition at line 211 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status, and BLOCXX_NAMESPACE::operator==().
| bool BLOCXX_NAMESPACE::Process::Status::terminated | ( | ) | const |
Definition at line 176 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status, and BLOCXX_NAMESPACE::operator==().
Referenced by BLOCXX_NAMESPACE::Process::processStatus(), BLOCXX_NAMESPACE::Process::terminatesWithin(), BLOCXX_NAMESPACE::Process::waitCloseTerm(), and BLOCXX_NAMESPACE::Process::~Process().
| bool BLOCXX_NAMESPACE::Process::Status::terminatedSuccessfully | ( | ) | const |
Definition at line 224 of file Process.cpp.
| int BLOCXX_NAMESPACE::Process::Status::termSignal | ( | ) | const |
signalTerminated() Definition at line 201 of file Process.cpp.
References BLOCXX_NAMESPACE::Process::m_status, and BLOCXX_NAMESPACE::operator==().
| String BLOCXX_NAMESPACE::Process::Status::toString | ( | ) | const |
Get a string representation of the status suitable for debugging or logging.
Definition at line 229 of file Process.cpp.
References BLOCXX_NAMESPACE::SignalUtils::signalName().
|
private |
Definition at line 199 of file Process.hpp.
|
private |
Definition at line 198 of file Process.hpp.