## Class stream_behavior

hamigaki::process::stream_behavior —

標準入出力の振る舞いを定義する。

## Synopsis

    class stream_behavior {
    public:
      // types
      typedef implementation defined type;

      // static constants
      static const type capture = implementation defined;  // パイプで捕捉する
      static const type close = implementation defined;  // 閉じる
      static const type inherit = implementation defined;  // 親プロセスから継承する
      static const type redirect_to_stdout = implementation defined;  // 標準出力にリダイレクトする
      static const type silence = implementation defined;  // ヌルデバイスに接続する

      // construct/copy/destruct
      stream_behavior();
      stream_behavior(type);

      // query
      type get_type() const;
    };

    // creations
    stream_behavior capture_stream();
    stream_behavior close_stream();
    stream_behavior inherit_stream();
    stream_behavior redirect_stream_to_stdout();
    stream_behavior silence_stream();

## Description

### `stream_behavior` construct/copy/destruct

1.     stream_behavior();

   Postconditions: | `get_type() == inherit`

2.     stream_behavior(type t);

   Postconditions: | `get_type() == t`

### `stream_behavior` query

1.     type get_type() const;

   Returns: | コンストラクタで設定された振る舞いのタイプ

### `stream_behavior` creations

1.     stream_behavior capture_stream();

   Returns: | `stream_behavior(stream_behavior::capture)`

2.     stream_behavior close_stream();

   Returns: | `stream_behavior(stream_behavior::close)`

3.     stream_behavior inherit_stream();

   Returns: | `stream_behavior(stream_behavior::inherit)`

4.     stream_behavior redirect_stream_to_stdout();

   Returns: | `stream_behavior(stream_behavior::redirect_to_stdout)`

5.     stream_behavior silence_stream();

   Returns: | `stream_behavior(stream_behavior::silence_stream)`

| 製作著作 © 2007, 2008 Takeshi Mouri