20 #ifndef MIRTK_Cifstream_H 21 #define MIRTK_Cifstream_H 23 #include "mirtk/CommonConfig.h" 24 #include "mirtk/CommonExport.h" 26 #include "mirtk/Object.h" 47 mirtkPublicAttributeMacro(
bool, Swapped);
58 bool Read(
char *,
long,
long);
76 bool ReadAsUInt(
unsigned int *,
long,
long = -1);
88 void Open(
const char *);
101 MIRTK_Common_DEPRECATED
int IsSwapped()
const;
105 MIRTK_Common_DEPRECATED
void IsSwapped(
int);
112 #endif // MIRTK_Cifstream_H Cifstream(const char *=NULL)
Constructor.
void Seek(long)
Go to position in file.
bool ReadAsUShort(unsigned short *, long, long=-1)
Read n data as array of unsigned short (possibly compressed) from offset.
bool ReadAsUInt(unsigned int *, long, long=-1)
Read n data as array of unsigned short (possibly compressed) from offset.
bool ReadAsShort(short *, long, long=-1)
Read n data as array of short (possibly compressed) from offset.
bool ReadAsInt(int *, long, long=-1)
Read n data as array of short (possibly compressed) from offset.
bool ReadAsString(char *, long, long=-1)
Read n data as string (possibly compressed) from current position.
bool Read(char *, long, long)
Read n data as array (possibly compressed) from offset.
bool ReadAsFloat(float *, long, long offset=-1)
Read n data as array of short compressed) from offset.
bool ReadAsDouble(double *, long, long=-1)
Read n data as array of unsigned short (possibly compressed) from offset.
MIRTK_Common_DEPRECATED int IsSwapped() const
bool ReadAsChar(char *, long, long=-1)
Read n data as array of char (possibly compressed) from offset.
bool ReadAsUChar(unsigned char *, long, long=-1)
Read n data as array of unsigned char (possibly compressed) from offset.
void Open(const char *)
Open file.
long Tell() const
Current position in file.