#include <IOBStream.h>
| commore::IBStream::IBStream |
( |
const AChar * |
s | ) |
|
- Parameters
-
| s | as text input stream in a null terminated string |
| commore::IBStream::IBStream |
( |
const Path & |
file_path, |
|
|
bool |
text = true |
|
) |
| |
- Parameters
-
| file_path | path of a file as input stream |
| text | if true file is a text file |
| commore::IBStream::IBStream |
( |
const CommBuffer & |
buffer | ) |
|
- Parameters
-
| buffer | input stream in a communication buffer |
| void commore::IBStream::close |
( |
| ) |
|
| const AChar* commore::IBStream::dump |
( |
| ) |
|
| void commore::IBStream::eatwhite |
( |
| ) |
|
| bool commore::IBStream::eof |
( |
| ) |
|
- Returns
- true if stream is terminated
| int commore::IBStream::get |
( |
| ) |
|
Get current character and go to next
- Returns
- -1 if end of stream
| int commore::IBStream::get |
( |
char * |
dest, |
|
|
size_t |
len |
|
) |
| |
Get len character and copy them to dest
- Returns
- number of read character
| bool commore::IBStream::is_open |
( |
| ) |
|
- Returns
- true if stream is open
| bool commore::IBStream::open |
( |
const Path & |
file_path, |
|
|
bool |
text = true |
|
) |
| |
Open stream on a file content
- Parameters
-
| file_path | path of a file as input stream |
| text | if true file is a text file |
| bool commore::IBStream::open |
( |
const AChar * |
s | ) |
|
Open stream on a string content
- Parameters
-
Open stream on a string buffer content
- Parameters
-
| bool commore::IBStream::open |
( |
const CommBuffer & |
b | ) |
|
Open stream on a communication buffer content
- Parameters
-
| int commore::IBStream::peek |
( |
| ) |
|
Get current character
- Returns
- -1 if end of stream
The documentation for this class was generated from the following file: