Class to write data from a Gzip compressed file. More...
#include <fileops.h>


Public Member Functions | |
| ogzstream () | |
| Default constructor. | |
| ogzstream (const string &fname) | |
| Opens a file for write access. | |
| ~ogzstream () | |
| Destructor. | |
| bool | open (const string &fname) |
| Opens a file for write access. | |
| void | put_block (void *to, u_int32 size) |
| Writes a block of bytes to the file. | |
| void | put_bool (const bool &n) |
| void | put_uint8 (const u_int8 &n) |
| void | put_sint8 (const s_int8 &n) |
| void | put_uint16 (const u_int16 &n) |
| void | put_sint16 (const s_int16 &n) |
| void | put_uint32 (const u_int32 &n) |
| void | put_sint32 (const s_int32 &n) |
| void | put_string (const string &s) |
| void | put_float (const float &n) |
Friends | |
| const bool & | operator>> (const bool &n, ogzstream &gfile) |
| Writes a boolean. | |
| const char & | operator>> (const char &n, ogzstream &gfile) |
| Writes a char. | |
| const u_int8 & | operator>> (const u_int8 &n, ogzstream &gfile) |
| Writes a u_int8. | |
| const s_int8 & | operator>> (const s_int8 &n, ogzstream &gfile) |
| Writes a s_int8. | |
| const u_int16 & | operator>> (const u_int16 &n, ogzstream &gfile) |
| Writes a u_int16. | |
| const s_int16 & | operator>> (const s_int16 &n, ogzstream &gfile) |
| Writes a s_int16. | |
| const u_int32 & | operator>> (const u_int32 &n, ogzstream &gfile) |
| Writes a u_int32. | |
| const s_int32 & | operator>> (const s_int32 &n, ogzstream &gfile) |
| Writes a s_int32. | |
| string & | operator>> (const string &s, ogzstream &gfile) |
| Writes a string. | |
| const float & | operator>> (const float &s, ogzstream &gfile) |
| Writes a float. | |
Class to write data from a Gzip compressed file.
Definition at line 223 of file fileops.h.
| ogzstream::ogzstream | ( | ) |
Default constructor.
Definition at line 250 of file fileops.cc.
| ogzstream::ogzstream | ( | const string & | fname | ) |
Opens a file for write access.
| fname | name of the file to open. |
Definition at line 254 of file fileops.cc.
| ogzstream::~ogzstream | ( | ) |
Destructor.
Definition at line 258 of file fileops.cc.
| bool ogzstream::open | ( | const string & | fname | ) |
Opens a file for write access.
| fname | name of the file to open. |
Definition at line 262 of file fileops.cc.
| void ogzstream::put_block | ( | void * | to, | |
| u_int32 | size | |||
| ) |
Writes a block of bytes to the file.
| to | pointer to the buffer to write. | |
| size | number of bytes to write. |
Definition at line 267 of file fileops.cc.
| const bool& operator>> | ( | const bool & | n, | |
| ogzstream & | gfile | |||
| ) | [friend] |
Writes a boolean.
Definition at line 273 of file fileops.cc.
| const char& operator>> | ( | const char & | n, | |
| ogzstream & | gfile | |||
| ) | [friend] |
Writes a char.
Definition at line 281 of file fileops.cc.
| const u_int8& operator>> | ( | const u_int8 & | n, | |
| ogzstream & | gfile | |||
| ) | [friend] |
Writes a u_int8.
Definition at line 288 of file fileops.cc.
| const s_int8& operator>> | ( | const s_int8 & | n, | |
| ogzstream & | gfile | |||
| ) | [friend] |
Writes a s_int8.
Definition at line 295 of file fileops.cc.
| const u_int16& operator>> | ( | const u_int16 & | n, | |
| ogzstream & | gfile | |||
| ) | [friend] |
Writes a u_int16.
Definition at line 302 of file fileops.cc.
| const s_int16& operator>> | ( | const s_int16 & | n, | |
| ogzstream & | gfile | |||
| ) | [friend] |
Writes a s_int16.
Definition at line 310 of file fileops.cc.
| const u_int32& operator>> | ( | const u_int32 & | n, | |
| ogzstream & | gfile | |||
| ) | [friend] |
Writes a u_int32.
Definition at line 318 of file fileops.cc.
| const s_int32& operator>> | ( | const s_int32 & | n, | |
| ogzstream & | gfile | |||
| ) | [friend] |
Writes a s_int32.
Definition at line 326 of file fileops.cc.
| string& operator>> | ( | const string & | s, | |
| ogzstream & | gfile | |||
| ) | [friend] |
Writes a string.
Definition at line 334 of file fileops.cc.
| const float& operator>> | ( | const float & | s, | |
| ogzstream & | gfile | |||
| ) | [friend] |
Writes a float.
Definition at line 346 of file fileops.cc.
1.7.1