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

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.
 

Detailed Description

Helper class to write a GZip file.

Member Function Documentation

◆ write()

template<typename T >
int GZipFileWriter::write ( val)
inline

Generic templated write function.

Returns
The number of written bytes, 0 means error

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