Class status
hamigaki::process::status —
プロセスの終了状態を保持する。
Synopsis
class status {
public:
// types
typedef implementation defined type;
// static constants
static const type exited = implementation defined; // exit()した、またはmain()関数からreturnした
static const type signaled = implementation defined; // シグナルにより終了した
static const type stopped = implementation defined; // シグナルにより停止した
static const type continued = implementation defined; // シグナルにより再開した
// construct/copy/destruct
status();
status(unsigned = 0);
status(type, unsigned, bool = false);
// queries
type get_type() const;
unsigned code() const;
bool dumped_core() const;
};
Description
status construct/copy/destruct
-
status();
| Postconditions: |
get_type() == inherit
|
-
status(unsigned code = 0);
| Postconditions: |
(get_type() == exited) && (this->code() == code) && (dumped_core() == false)
|
-
status(type t, unsigned code, bool core = false);
| Postconditions: |
(get_type() == t) && (this->code() == code) && (dumped_core() == core)
|
status queries
-
type get_type() const;
| Returns: |
コンストラクタで設定された終了タイプ |
-
unsigned code() const;
| Returns: |
コンストラクタで設定された終了コードまたはシグナル番号 |
-
bool dumped_core() const;
| Returns: |
coreファイルが作成されたかどうか |