標準入出力クラス More...
#include <StandardIo.h>

Public Member Functions | |
| const char * | what (void) const |
| 内部状態を返す | |
| bool | connect (const char *device, long baudrate=0) |
| デバイスへの接続 | |
| void | disconnect (void) |
| 切断 | |
| bool | setBaudrate (long baudrate) |
| ボーレートの変更 | |
| long | baudrate (void) const |
| ボーレートを返す | |
| bool | isConnected (void) const |
| 接続状態を返す | |
| int | send (const char *data, size_t count) |
| 送信 | |
| int | receive (char *data, size_t count, int timeout) |
| 受信 | |
| size_t | size (void) const |
| 受信済みデータのバイト数を返す | |
| void | flush (void) |
| バッファの内容を強制的に出力する | |
| void | clear (void) |
| 送受信データのクリア | |
| void | ungetc (const char ch) |
| 1文字書き戻す | |
標準入出力クラス
Definition at line 20 of file StandardIo.h.
| const char * StandardIo::what | ( | void | ) | const [virtual] |
内部状態を返す
Implements qrk::Connection.
Definition at line 45 of file StandardIo_lin.cpp.
| bool StandardIo::connect | ( | const char * | device, |
| long | baudrate = 0 |
||
| ) | [virtual] |
デバイスへの接続
| [in] | device | 接続デバイス名 |
| [in] | baudrate | 接続ボーレート |
| true | 成功 |
| false | 失敗 |
Implements qrk::Connection.
Definition at line 51 of file StandardIo_lin.cpp.
| void StandardIo::disconnect | ( | void | ) | [virtual] |
| bool StandardIo::setBaudrate | ( | long | baudrate | ) | [virtual] |
ボーレートの変更
| [in] | baudrate | ボーレート |
| 0 | 正常 |
| < | 0 エラー |
Implements qrk::Connection.
Definition at line 68 of file StandardIo_lin.cpp.
| long StandardIo::baudrate | ( | void | ) | const [virtual] |
ボーレートを返す
| ボーレート |
Implements qrk::Connection.
Definition at line 77 of file StandardIo_lin.cpp.
| bool StandardIo::isConnected | ( | void | ) | const [virtual] |
接続状態を返す
| true | 接続中 |
| false | 切断中 |
Implements qrk::Connection.
Definition at line 84 of file StandardIo_lin.cpp.
| int StandardIo::send | ( | const char * | data, |
| size_t | count | ||
| ) | [virtual] |
送信
| [in] | data | 送信データ |
| [in] | count | 送信バイト数 |
Implements qrk::Connection.
Definition at line 90 of file StandardIo_lin.cpp.
| int StandardIo::receive | ( | char * | data, |
| size_t | count, | ||
| int | timeout | ||
| ) | [virtual] |
受信
| [out] | data | 受信用バッファ |
| [in] | count | 受信バッファの最大サイズ |
| [in] | timeout | タイムアウト時間 [msec] |
Implements qrk::Connection.
Definition at line 96 of file StandardIo_lin.cpp.
| size_t StandardIo::size | ( | void | ) | const [virtual] |
受信済みデータのバイト数を返す
Implements qrk::Connection.
Definition at line 116 of file StandardIo_lin.cpp.
| void StandardIo::flush | ( | void | ) | [virtual] |
| void StandardIo::clear | ( | void | ) | [virtual] |
送受信データのクリア
送信バッファ、受信済みデータをクリアする
Implements qrk::Connection.
Definition at line 129 of file StandardIo_lin.cpp.
| void StandardIo::ungetc | ( | const char | ch | ) | [virtual] |
1文字書き戻す
| [in] | ch | 書き戻す文字 |
Implements qrk::Connection.
Definition at line 135 of file StandardIo_lin.cpp.
1.7.6.1-20120122