#include <irtkCofstream.h>
This class defines and implements functions for writing compressed file streams. At the moment only the writing of uncompressed file streams is supported.
Definition at line 25 of file irtkCofstream.h.
Public Member Functions | |
irtkCofstream () | |
Constructor. | |
~irtkCofstream () | |
Destructor. | |
void | Write (char *data, int offset, int length) |
Write n data as array from offset. | |
void | WriteAsChar (char data, int offset=-1) |
Write data as char (possibly compressed) from offset. | |
void | WriteAsChar (char *data, int length, int offset=-1) |
Write data as char (possibly compressed) from offset. | |
void | WriteAsUChar (unsigned char data, int offset=-1) |
Write data as unsigned char (possibly compressed) from offset. | |
void | WriteAsUChar (unsigned char *data, int length, int offset=-1) |
Write data as unsigned char (possibly compressed) from offset. | |
void | WriteAsShort (short data, int offset=-1) |
Write data as short (possibly compressed) from offset. | |
void | WriteAsShort (short *data, int length, int offset=-1) |
Write data as short (possibly compressed) from offset. | |
void | WriteAsUShort (unsigned short data, int offset=-1) |
Write data as unsigned short (possibly compressed) from offset. | |
void | WriteAsUShort (unsigned short *data, int length, int offset=-1) |
Write data as unsigned short (possibly compressed) from offset. | |
void | WriteAsInt (int data, int offset=-1) |
Write data as int (possibly compressed) from offset. | |
void | WriteAsInt (int *data, int length, int offset=-1) |
Write data as int (possibly compressed) from offset. | |
void | WriteAsUInt (unsigned int data, int offset=-1) |
Write data as unsigned int (possibly compressed) from offset. | |
void | WriteAsUInt (unsigned int *data, int length, int offset=-1) |
Write data as unsigned int (possibly compressed) from offset. | |
void | WriteAsFloat (float data, int offset=-1) |
Write data as float (possibly compressed) from offset. | |
void | WriteAsFloat (float *data, int length, int offset=-1) |
Write data as float (possibly compressed) from offset. | |
void | WriteAsDouble (double data, int offset=-1) |
Write data as double (possibly compressed) from offset. | |
void | WriteAsDouble (double *data, int length, int offset=-1) |
Write data as double (possibly compressed) from offset. | |
void | WriteAsString (char *data, int offset=-1) |
Write data as string (possibly compressed). | |
void | Open (const char *) |
Open file. | |
void | Close () |
Close file. | |
int | IsCompressed () |
Returns whether file is compressed. | |
void | IsCompressed (int) |
Sets whether file is compressed. | |
int | IsSwapped () |
Returns whether file is swapped. | |
void | IsSwapped (int) |
Sets whether file is swapped. | |
Protected Attributes | |
int | _compressed |
Flag whether file is compressed. | |
int | _swapped |
Flag whether file is swapped. |