13#ifndef BIFSTREAM_H_INCLUDED
14#define BIFSTREAM_H_INCLUDED
31 ios::openmode mode = ios::in | ios::binary)
32 : ifstream(name, mode) {
34 if (!(this->
mfilep = fopen(name,
"rb"))) {
46 streampos
pos() final;
49 void getRaw(
char*
c, streamsize n) final {
53 fseek(
mfilep, this->tellg(), SEEK_SET);
54 size_t nread = fread(
c,
sizeof(
char), n,
mfilep);
56 "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,...)