I/O stream base.
More...
#include <axcel.h>
List of all members.
Public Member Functions |
virtual string | type () |
| Get type of object.
|
virtual | operator string () |
| Convert to string.
|
| iob () |
bool | ok () |
| Is stream ok?
|
bool | hurt () |
| Has I/O error occurred?
|
bool | dead () |
| Is stream broken?
|
bool | eof () |
| End of fs::file?
|
void | heal () |
| Stream is ok.
|
void | hit () |
| Stream is hurt.
|
void | kill () |
| Stream is dead.
|
void | drain () |
| Stream is at EOF.
|
Public Attributes |
iofmt | fmt |
Detailed Description
I/O stream base.
Definition at line 308 of file axcel.h.
Constructor & Destructor Documentation
axcel::io::iob::iob |
( |
| ) |
[inline] |
Member Function Documentation
bool axcel::io::iob::dead |
( |
| ) |
|
Is stream broken?
- Returns:
- true if fatal error has occurred and stream can no longer be used, false if not.
Definition at line 527 of file axcel.cpp.
void axcel::io::iob::drain |
( |
| ) |
|
Stream is at EOF.
Stream has reached end of input or has filled the maximum capacity for output data. This method sets a flag for the stream so that eof() results in true.
Definition at line 560 of file axcel.cpp.
bool axcel::io::iob::eof |
( |
| ) |
|
End of fs::file?
- Returns:
- true if end of fs::file for the stream has been reached, that is, no more data is available to read and/or output data has reached maximum capacity.
Definition at line 533 of file axcel.cpp.
void axcel::io::iob::heal |
( |
| ) |
|
Stream is ok.
Clears eof and error indicators for stream so a call to ok() results in true
Definition at line 539 of file axcel.cpp.
void axcel::io::iob::hit |
( |
| ) |
|
Stream is hurt.
Last I/O operation has resulted in an error but the stream is still potentially usable. This method sets a flag for the stream so that hurt() results in true.
Definition at line 546 of file axcel.cpp.
bool axcel::io::iob::hurt |
( |
| ) |
|
Has I/O error occurred?
- Returns:
- true if last I/O operation resulted in error but the stream is still usable, false if not.
Definition at line 522 of file axcel.cpp.
void axcel::io::iob::kill |
( |
| ) |
|
Stream is dead.
Fatal I/O error has occurred and stream can no longer be used. This method sets a flag for the stream so that dead() results in true.
Definition at line 553 of file axcel.cpp.
bool axcel::io::iob::ok |
( |
| ) |
|
Is stream ok?
- Returns:
- true if stream is good for I/O, false if not
Definition at line 517 of file axcel.cpp.
axcel::io::iob::operator string |
( |
| ) |
[virtual] |
string axcel::io::iob::type |
( |
| ) |
[virtual] |
Member Data Documentation
The documentation for this class was generated from the following files: