Go to the documentation of this file.
89 bool open (
const string & fname,
gz_type t);
167 bool open (
const string & fname);
175 void get_block (
void * to,
u_int32 size);
216 string get_string ();
259 bool open (
const string & fname);
267 void put_block (
void * to,
u_int32 size);
301 void put_bool (
const bool &n) { n >> *
this; }
302 void put_uint8 (
const u_int8 &n) { n >> *
this; }
303 void put_sint8 (
const s_int8 &n) { n >> *
this; }
304 void put_uint16 (
const u_int16 &n) { n >> *
this; }
305 void put_sint16 (
const s_int16 &n) { n >> *
this; }
306 void put_uint32 (
const u_int32 &n) { n >> *
this; }
307 void put_sint32 (
const s_int32 &n) { n >> *
this; }
308 void put_string (
const string& s) { s >> *
this; }
309 void put_float (
const float &n) { n >> *
this; }
342 #endif // __FILEOPS_H__
Declares some basic types.
Class to read data from a Gzip compressed file.
#define u_int32
32 bits long unsigned integer
#define s_int32
32 bits long signed integer
Class to write data from a Gzip compressed file.
#define u_int8
8 bits long unsigned integer
#define s_int16
16 bits long signed integer
bool is_open()
Returns whether the file is opened or not.
gz_type
Enumeration to know whether a file is read or write opened.
#define s_int8
8 bits long signed integer
Base class for igzstream and ogzstream.
const bool & operator>>(const bool &n, ogzstream &gfile)
Writes a boolean.
#define u_int16
16 bits long unsigned integer
File version control class.
gzFile file
The actual gzFile.
bool & operator<<(bool &n, igzstream &gfile)
Reads a boolean.
bool eof()
Returns whether the file is at it's end or not.