igzstream Class Reference
Class to read data from a Gzip compressed file.
More...
#include <fileops.h>
List of all members.
|
Public Member Functions |
| | igzstream () |
| | Default constructor.
|
| | igzstream (const string &fname) |
| | Opens a file for read access.
|
| | ~igzstream () |
| | Destructor.
|
| bool | open (const string &fname) |
| | Opens a file for read access.
|
| void | get_block (void *to, u_int32 size) |
| | Reads a block of bytes from the file.
|
| bool | get_bool () |
| | Reads a boolean.
|
| u_int8 | get_uint8 () |
| | Reads a u_int8.
|
| s_int8 | get_sint8 () |
| | Reads a s_int8.
|
| u_int16 | get_uint16 () |
| | Reads a u_int16.
|
| s_int16 | get_sint16 () |
| | Reads a s_int16.
|
| u_int32 | get_uint32 () |
| | Reads a u_int32.
|
| s_int32 | get_sint32 () |
| | Reads a s_int32.
|
| string | get_string () |
| | Reads a string.
|
| float | get_float () |
| | Reads a float.
|
Friends |
| bool & | operator<< (bool &n, igzstream &gfile) |
| | Reads a boolean.
|
| char & | operator<< (char &n, igzstream &gfile) |
| | Reads a char.
|
| u_int8 & | operator<< (u_int8 &n, igzstream &gfile) |
| | Reads a u_int8.
|
| s_int8 & | operator<< (s_int8 &n, igzstream &gfile) |
| | Reads a s_int8.
|
| u_int16 & | operator<< (u_int16 &n, igzstream &gfile) |
| | Reads a u_int16.
|
| s_int16 & | operator<< (s_int16 &n, igzstream &gfile) |
| | Reads a s_int16.
|
| u_int32 & | operator<< (u_int32 &n, igzstream &gfile) |
| | Reads a u_int32.
|
| s_int32 & | operator<< (s_int32 &n, igzstream &gfile) |
| | Reads a s_int32.
|
| string & | operator<< (string &s, igzstream &gfile) |
| | Reads a string.
|
| float & | operator<< (float &s, igzstream &gfile) |
| | Reads a float.
|
Detailed Description
Class to read data from a Gzip compressed file.
Definition at line 131 of file fileops.h.
Constructor & Destructor Documentation
Default constructor.
Definition at line 65 of file fileops.cc.
| igzstream::igzstream |
( |
const string & |
fname |
) |
|
Opens a file for read access.
- Parameters:
-
| fname | name of the file to open. |
Definition at line 69 of file fileops.cc.
| igzstream::~igzstream |
( |
|
) |
|
Member Function Documentation
| bool igzstream::open |
( |
const string & |
fname |
) |
|
Opens a file for read access.
- Parameters:
-
| fname | name of the file to open. |
- Returns:
- true if succeed, false otherwise.
Definition at line 77 of file fileops.cc.
| void igzstream::get_block |
( |
void * |
to, |
|
|
u_int32 |
size | |
|
) |
| | |
Reads a block of bytes from the file.
Read a block of size chars.
- Parameters:
-
| to | pointer to the buffer where to read. |
| size | number of bytes to read. |
Definition at line 106 of file fileops.cc.
| bool igzstream::get_bool |
( |
|
) |
|
| u_int8 igzstream::get_uint8 |
( |
|
) |
|
| s_int8 igzstream::get_sint8 |
( |
|
) |
|
| u_int16 igzstream::get_uint16 |
( |
|
) |
|
| s_int16 igzstream::get_sint16 |
( |
|
) |
|
| u_int32 igzstream::get_uint32 |
( |
|
) |
|
| s_int32 igzstream::get_sint32 |
( |
|
) |
|
| string igzstream::get_string |
( |
|
) |
|
| float igzstream::get_float |
( |
|
) |
|
Friends And Related Function Documentation
| bool& operator<< |
( |
bool & |
n, |
|
|
igzstream & |
gfile | |
|
) |
| | [friend] |
| char& operator<< |
( |
char & |
n, |
|
|
igzstream & |
gfile | |
|
) |
| | [friend] |
| u_int8& operator<< |
( |
u_int8 & |
n, |
|
|
igzstream & |
gfile | |
|
) |
| | [friend] |
| s_int8& operator<< |
( |
s_int8 & |
n, |
|
|
igzstream & |
gfile | |
|
) |
| | [friend] |
| u_int16& operator<< |
( |
u_int16 & |
n, |
|
|
igzstream & |
gfile | |
|
) |
| | [friend] |
| s_int16& operator<< |
( |
s_int16 & |
n, |
|
|
igzstream & |
gfile | |
|
) |
| | [friend] |
| u_int32& operator<< |
( |
u_int32 & |
n, |
|
|
igzstream & |
gfile | |
|
) |
| | [friend] |
| s_int32& operator<< |
( |
s_int32 & |
n, |
|
|
igzstream & |
gfile | |
|
) |
| | [friend] |
| string& operator<< |
( |
string & |
s, |
|
|
igzstream & |
gfile | |
|
) |
| | [friend] |
| float& operator<< |
( |
float & |
s, |
|
|
igzstream & |
gfile | |
|
) |
| | [friend] |
The documentation for this class was generated from the following files: