40 case Set: this->seekp(spos, ios::beg);
break;
41 case Add: this->seekp(spos, ios::cur);
break;
42 case End: this->seekp(spos, ios::end);
break;
49 return streamoff (this->tellp ());
56 throw runtime_error (
"Cannot open binary file for writing");
64 throw runtime_error (
"Writing to binary file failed");
77 { bof.
writeInt (n, 4);
return (bof); }
80 { bof.
writeInt (n, 4);
return (bof); }
void seek(long spos, Offset offs)
This file contains the class declaration of bofstream.
bofstream & operator<<(bofstream &bof, double n)
void writeFloat(Float f, FType ft)
void writeInt(Int val, unsigned int size)
Binary output file stream class.
void putByte(bofstream::Byte b)