EMODnet Quantized Mesh Generator for Cesium
Public Types | Public Member Functions | List of all members
GZipFileReader Class Reference

Helper class to read a GZip file. More...

#include <gzip_file_reader.h>

Public Types

typedef unsigned char Byte
 

Public Member Functions

 GZipFileReader (const std::string &filePath)
 Constructor.
 
bool isFileOpen ()
 Check if the file is open.
 
Byte readByte ()
 Reads a byte.
 
void skipBytes (int numBytes)
 Skips a given number of bytes.
 
double readDouble ()
 Reads a double.
 
float readFloat ()
 Reads a float.
 
int readInt ()
 Reads a int.
 
unsigned int readUInt ()
 Reads an unsigned int.
 
short readShort ()
 Reads a short.
 
unsigned short readUShort ()
 Reads an unsigned short.
 
char readChar ()
 Reads a char.
 
unsigned char readUChar ()
 Reads an unsigned char.
 
template<typename T >
read ()
 Generic templated read function.
 
int getPos ()
 Returns the position on the file (i.e., read byte counter)
 
bool close ()
 Closes the file.
 
bool eof ()
 Indicates the end of file.
 

Detailed Description

Helper class to read a GZip file.


The documentation for this class was generated from the following files: