![]() |
EMODnet Quantized Mesh Generator for Cesium
|
Helper class to write a GZip file. More...
#include <gzip_file_writer.h>
Public Types | |
typedef unsigned char | Byte |
Public Member Functions | |
GZipFileWriter (const std::string &filePath) | |
Constructor. | |
bool | isFileOpen () |
Check if the file is open. | |
int | writeByte (const Byte &b) |
Writes a byte. | |
int | writeDouble (const double &d) |
Writes a double. | |
int | writeFloat (const float &f) |
Writes a float. | |
int | writeInt (const int &i) |
Writes an int. | |
int | writeUInt (const unsigned int &u) |
Writes an unsigned int. | |
int | writeShort (const short &s) |
Writes a short. | |
int | writeUShort (const unsigned short &u) |
Writes an unsigned short. | |
int | writeChar (const char &c) |
Writes a char. | |
int | writeUChar (const unsigned char &c) |
Writes an unsigned char. | |
template<typename T > | |
int | write (T val) |
Generic templated write function. More... | |
int | getPos () |
Returns the position on the file (i.e., read byte counter) | |
bool | close () |
Closes the file. | |
Helper class to write a GZip file.
|
inline |
Generic templated write function.