#include <bofstream.h>
Public Member Functions | |
bofstream () | |
bofstream (const char *name, ios::openmode mode=ios::out|ios::trunc|ios::binary) | |
virtual | ~bofstream () |
void | seek (long spos, Offset offs) |
long | pos () |
void | putByte (bofstream::Byte b) |
void | putRaw (const char *c, streamsize n) |
Handles writing to an output file stream in binary format. It makes it possible to use the operator<< for binary output.
Definition at line 44 of file bofstream.h.
bofstream::bofstream | ( | ) | [inline] |
Definition at line 47 of file bofstream.h.
bofstream::bofstream | ( | const char * | name, | |
ios::openmode | mode = ios::out | ios::trunc | ios::binary | |||
) | [inline, explicit] |
Definition at line 50 of file bofstream.h.
References binio::BigEndian, binio::FloatIEEE, and binio::setFlag().
virtual bofstream::~bofstream | ( | ) | [inline, virtual] |
Definition at line 59 of file bofstream.h.
void bofstream::seek | ( | long | spos, | |
Offset | offs | |||
) | [virtual] |
Implements binio.
Definition at line 35 of file bofstream.cc.
References binio::Add, binio::End, binio::err, binio::NotOpen, and binio::Set.
long bofstream::pos | ( | ) | [virtual] |
Implements binio.
Definition at line 46 of file bofstream.cc.
References binio::err, and binio::NotOpen.
void bofstream::putByte | ( | bofstream::Byte | b | ) |
Definition at line 52 of file bofstream.cc.
References binio::err, binio::Fatal, and binio::NotOpen.
void bofstream::putRaw | ( | const char * | c, | |
streamsize | n | |||
) | [inline, virtual] |