#include <IOBStream.h>
commore::OBStream::OBStream |
( |
const Path & |
file_path, |
|
|
bool |
append = false , |
|
|
bool |
text = true |
|
) |
| |
- Parameters
-
file_path | of file where stream will be write |
append | if true append stream to file |
text | if true stream is a text stream |
commore::OBStream::OBStream |
( |
AString & |
s | ) |
|
- Parameters
-
s | string where stream will be write |
- Parameters
-
s | string buffer where stream will be write |
commore::OBStream::OBStream |
( |
CommBuffer & |
s, |
|
|
bool |
text |
|
) |
| |
- Parameters
-
s | communication buffer where stream will be write |
text | if true stream is a text stream (force xml format) |
void commore::OBStream::close |
( |
| ) |
|
Close stream Flush remaining data
void commore::OBStream::flush |
( |
| ) |
|
Write remaining data in stream to data container
Write formated data to text stream
int commore::OBStream::get_current_col |
( |
| ) |
|
int commore::OBStream::get_indent |
( |
| ) |
|
- Returns
- curent indent column
void commore::OBStream::indent |
( |
int |
i = 1 | ) |
|
Increment indetation
- Parameters
-
bool commore::OBStream::is_open |
( |
| ) |
|
- Returns
- true if stream regulary open
bool commore::OBStream::open |
( |
const Path & |
file_path, |
|
|
bool |
append = false , |
|
|
bool |
text = true |
|
) |
| |
Open stream on a file
- Parameters
-
file_path | of file where stream will be write |
append | if true append stream to file |
text | if true stream is a text stream |
bool commore::OBStream::open |
( |
AString & |
s | ) |
|
Open stream on a string
- Parameters
-
s | string where stream will be write |
Open stream on a string buffer
- Parameters
-
s | string buffer where stream will be write |
bool commore::OBStream::open |
( |
CommBuffer & |
c, |
|
|
bool |
text |
|
) |
| |
Open stream on a communication buffer
- Parameters
-
c | communication buffer where stream will be write |
text | |
Write formated data to text stream
void commore::OBStream::put |
( |
int |
c | ) |
|
Add a character to stream
- Parameters
-
void commore::OBStream::put |
( |
const char * |
s | ) |
|
Add a character string to stream
- Parameters
-
void commore::OBStream::unindent |
( |
int |
i = 1 | ) |
|
Decrement indetation
- Parameters
-
The documentation for this class was generated from the following file: