20 #ifndef MIRTK_Cofstream_H    21 #define MIRTK_Cofstream_H    23 #include "mirtk/CommonConfig.h"    24 #include "mirtk/CommonExport.h"    26 #include "mirtk/Object.h"    48 #if MIRTK_Common_WITH_ZLIB    53   mirtkPublicAttributeMacro(
bool, Compressed);
    56   mirtkPublicAttributeMacro(
bool, Swapped);
    67   bool Write(
const char *, 
long, 
long);
    77   bool WriteAsUChar(
const unsigned char *, 
long, 
long = -1);
    97   bool WriteAsUInt(
const unsigned int *, 
long, 
long = -1);
   113   void Open(
const char *);
   128   MIRTK_Common_DEPRECATED 
int IsSwapped() 
const;
   132   MIRTK_Common_DEPRECATED 
void IsSwapped(
int);
   139 #endif // MIRTK_Cofstream_H bool WriteAsFloat(float, long=-1)
Write data as float (possibly compressed) from offset. 
 
bool WriteAsUInt(unsigned int, long=-1)
Write data as unsigned int (possibly compressed) from offset. 
 
bool WriteAsString(const char *, long=-1)
Write data as string (possibly compressed) 
 
bool WriteAsUShort(unsigned short, long=-1)
Write data as unsigned short (possibly compressed) from offset. 
 
Cofstream(const char *=NULL)
Constructor. 
 
MIRTK_Common_DEPRECATED int IsCompressed() const
 
bool WriteAsUChar(unsigned char, long=-1)
Write data as unsigned char (possibly compressed) from offset. 
 
bool WriteAsChar(char, long=-1)
Write data as char (possibly compressed) from offset. 
 
void Open(const char *)
Open file. 
 
bool Write(const char *, long, long)
Write n data as array from offset. 
 
bool WriteAsShort(short, long=-1)
Write data as short (possibly compressed) from offset. 
 
MIRTK_Common_DEPRECATED int IsSwapped() const
 
bool WriteAsInt(int, long=-1)
Write data as int (possibly compressed) from offset. 
 
bool WriteAsDouble(double, long=-1)
Write data as double (possibly compressed) from offset.