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.
const char& operator>> | ( | const char & | n, | |
ogzstream & | gfile | |||
) | [friend] |
Writes a char.
const u_int8& operator>> | ( | const u_int8 & | n, | |
ogzstream & | gfile | |||
) | [friend] |
Writes a u_int8.
const s_int8& operator>> | ( | const s_int8 & | n, | |
ogzstream & | gfile | |||
) | [friend] |
Writes a s_int8.
const u_int16& operator>> | ( | const u_int16 & | n, | |
ogzstream & | gfile | |||
) | [friend] |
Writes a u_int16.
const s_int16& operator>> | ( | const s_int16 & | n, | |
ogzstream & | gfile | |||
) | [friend] |
Writes a s_int16.
const u_int32& operator>> | ( | const u_int32 & | n, | |
ogzstream & | gfile | |||
) | [friend] |
Writes a u_int32.
const s_int32& operator>> | ( | const s_int32 & | n, | |
ogzstream & | gfile | |||
) | [friend] |
Writes a s_int32.
string& operator>> | ( | const string & | s, | |
ogzstream & | gfile | |||
) | [friend] |
Writes a string.
const float& operator>> | ( | const float & | s, | |
ogzstream & | gfile | |||
) | [friend] |
Writes a float.