ogzstream Class Reference
Class to write data from a Gzip compressed file.
More...
#include <fileops.h>
List of all members.
|
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.
|
Detailed Description
Class to write data from a Gzip compressed file.
Definition at line 223 of file fileops.h.
Constructor & Destructor Documentation
ogzstream::ogzstream |
( |
const string & |
fname |
) |
|
Opens a file for write access.
- Parameters:
-
| fname | name of the file to open. |
Definition at line 254 of file fileops.cc.
ogzstream::~ogzstream |
( |
|
) |
|
Member Function Documentation
bool ogzstream::open |
( |
const string & |
fname |
) |
|
Opens a file for write access.
- Parameters:
-
| fname | name of the file to open. |
- Returns:
- true if succeed, false otherwise.
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.
- Parameters:
-
| to | pointer to the buffer to write. |
| size | number of bytes to write. |
Definition at line 267 of file fileops.cc.
Friends And Related Function Documentation
const bool& operator>> |
( |
const bool & |
n, |
|
|
ogzstream & |
gfile | |
|
) |
| | [friend] |
const char& operator>> |
( |
const char & |
n, |
|
|
ogzstream & |
gfile | |
|
) |
| | [friend] |
const u_int8& operator>> |
( |
const u_int8 & |
n, |
|
|
ogzstream & |
gfile | |
|
) |
| | [friend] |
const s_int8& operator>> |
( |
const s_int8 & |
n, |
|
|
ogzstream & |
gfile | |
|
) |
| | [friend] |
const u_int16& operator>> |
( |
const u_int16 & |
n, |
|
|
ogzstream & |
gfile | |
|
) |
| | [friend] |
const s_int16& operator>> |
( |
const s_int16 & |
n, |
|
|
ogzstream & |
gfile | |
|
) |
| | [friend] |
const u_int32& operator>> |
( |
const u_int32 & |
n, |
|
|
ogzstream & |
gfile | |
|
) |
| | [friend] |
const s_int32& operator>> |
( |
const s_int32 & |
n, |
|
|
ogzstream & |
gfile | |
|
) |
| | [friend] |
string& operator>> |
( |
const string & |
s, |
|
|
ogzstream & |
gfile | |
|
) |
| | [friend] |
const float& operator>> |
( |
const float & |
s, |
|
|
ogzstream & |
gfile | |
|
) |
| | [friend] |
The documentation for this class was generated from the following files: