30#ifndef BIFSTREAM_H_INCLUDED
31#define BIFSTREAM_H_INCLUDED
48 ios::openmode mode = ios::in | ios::binary)
49 : ifstream(name, mode) {
51 if (!(this->
mfilep = fopen(name,
"rb"))) {
63 streampos
pos() final;
66 void getRaw(
char*
c, streamsize n) final {
70 fseek(
mfilep, this->tellg(), SEEK_SET);
71 size_t nread = fread(
c,
sizeof(
char), n,
mfilep);
73 "Unexpectedly reached end of binary input file.");
bifstream & operator>>(bifstream &bif, double &n)
Binary output file stream class.
void seek(long spos, Offset offs) final
void getRaw(char *c, streamsize n) final
bifstream::Byte getByte() final
bifstream(const char *name, ios::openmode mode=ios::in|ios::binary)
enum { Set, Add, End } Offset
Helper macros for debugging.
#define ARTS_USER_ERROR(...)
#define ARTS_USER_ERROR_IF(condition,...)