#include "CTBzfile.hxx"
Public Methods | |
CTBzfile () | |
~CTBzfile () | |
bool | Open (const char *c_name, const char *c_mode) |
void | Close () |
CTBint | Read (void *p_buf, CTBint i_size) |
CTBint | Write (const void *p_buf, CTBint i_size) |
CTBint | ReadObject (void *p_buf, CTBint i_size) |
CTBint | WriteObject (const void *p_buf, CTBint i_size) |
bool | Good () |
bool | Bad () |
bool | Fail () |
bool | Eof () |
void | Dump (int i_indent=0, ostream &os=cout, const char *p_text=0) const |
Private Types | |
enum | type { closed = 0, cfile, gzfile } |
Private Attributes | |
int | mi_type |
void * | m_file |
bool | mb_bad |
bool | mb_eof |
Definition at line 16 of file CTBzfile.hxx.
|
Definition at line 43 of file CTBzfile.hxx. |
|
Default constructor.
Definition at line 33 of file CTBzfile.cxx. |
|
Destructor.
Definition at line 45 of file CTBzfile.cxx. |
|
Open file.
Definition at line 55 of file CTBzfile.cxx. |
|
Close file.
Definition at line 80 of file CTBzfile.cxx. Referenced by Open(), and ~CTBzfile().
|
|
Read at most i_size bytes from file into buffer p_buf .
Definition at line 103 of file CTBzfile.cxx. |
|
Write object of size i_size to file from buffer p_buf .
Definition at line 130 of file CTBzfile.cxx. |
|
Read object of size i_size from file into buffer p_buf .
Definition at line 157 of file CTBzfile.cxx. |
|
Write object of size i_size to file from buffer p_buf .
Definition at line 186 of file CTBzfile.cxx. |
|
State check: good flag.
Definition at line 215 of file CTBzfile.cxx. |
|
State check: bad flag.
Definition at line 225 of file CTBzfile.cxx. Referenced by Fail().
|
|
State check: fail flag.
Definition at line 240 of file CTBzfile.cxx. Referenced by Good().
|
|
State check: eof flag.
Definition at line 250 of file CTBzfile.cxx. Referenced by Fail().
|
|
Dump.
Definition at line 265 of file CTBzfile.cxx. |
|
type of file.
Definition at line 48 of file CTBzfile.hxx. |
|
file handle.
Definition at line 49 of file CTBzfile.hxx. |
|
stream in bad state.
Definition at line 50 of file CTBzfile.hxx. |
|
stream in eof state.
Definition at line 51 of file CTBzfile.hxx. |