#include <irtkCifstream.h>
This class defines and implements functions for reading compressed file streams. The file streams can be either uncompressed or compressed.
Definition at line 24 of file irtkCifstream.h.
Public Member Functions | |
irtkCifstream () | |
Constructor. | |
~irtkCifstream () | |
Destructor. | |
void | Read (char *data, int length, int offset) |
Read n data as array (possibly compressed) from offset. | |
void | ReadAsChar (char *data, int length, int offset=-1) |
Read n data as array of char (possibly compressed) from offset. | |
void | ReadAsUChar (unsigned char *data, int length, int offset=-1) |
Read n data as array of unsigned char (possibly compressed) from offset. | |
void | ReadAsShort (short *data, int length, int offset=-1) |
Read n data as array of short (possibly compressed) from offset. | |
void | ReadAsUShort (unsigned short *data, int length, int offset=-1) |
Read n data as array of unsigned short (possibly compressed) from offset. | |
void | ReadAsInt (int *data, int length, int offset=-1) |
Read n data as array of short (possibly compressed) from offset. | |
void | ReadAsUInt (unsigned int *data, int length, int offset=-1) |
Read n data as array of unsigned short (possibly compressed) from offset. | |
void | ReadAsFloat (float *data, int length, int offset=-1) |
Read n data as array of short (possibly compressed) from offset. | |
void | ReadAsDouble (double *data, int length, int offset=-1) |
Read n data as array of unsigned short (possibly compressed) from offset. | |
void | ReadAsString (char *data, int length, int offset=-1) |
Read n data as string (possibly compressed) from current position. | |
void | Open (const char *) |
Open file. | |
void | Close () |
Close file. | |
void | Seek (long) |
Go to position in file. | |
long | Tell () |
Current position in file. | |
int | IsSwapped () |
Returns whether file is swapped. | |
void | IsSwapped (int) |
Sets whether file is swapped. | |
Protected Attributes | |
int | _swapped |
Flag whether file is swapped. |