ARTS 2.5.11 (git: 725533f0)
|
#include <binio.h>
Public Member Functions | |
void | writeInt (Int val, unsigned int size) |
void | writeFloat (Float f, FType ft) |
unsigned long | writeString (const char *str, unsigned long amount=0) |
![]() | |
binio () | |
void | setFlag (Flag f, bool set=true) |
bool | getFlag (Flag f) |
Error | error () |
bool | eof () |
virtual void | seek (long, Offset=Set)=0 |
virtual std::streampos | pos ()=0 |
Protected Member Functions | |
virtual void | putByte (Byte)=0 |
virtual void | putRaw (const char *c, std::streamsize n)=0 |
Additional Inherited Members | |
![]() | |
using | Flag = enum { BigEndian=1<< 0, FloatIEEE=1<< 1 } |
using | ErrorCode = enum { NoError=0, Fatal=1<< 0, Unsupported=1<< 1, NotOpen=1<< 2, Denied=1<< 3, NotFound=1<< 4, Eof=1<< 5 } |
using | Offset = enum { Set, Add, End } |
using | FType = enum { Single, Double } |
using | Error = int |
![]() | |
using | Int = std::int64_t |
using | Float = double |
using | Byte = unsigned char |
using | Flags = int |
![]() | |
Flags | my_flags {system_flags} |
Error | err {NoError} |
![]() | |
static const Flags | system_flags = binio::detect_system_flags() |
|
protectedpure virtual |
Implemented in bofstream.
Referenced by writeFloat(), writeInt(), and writeString().
|
protectedpure virtual |
Referenced by writeFloat().
Definition at line 298 of file binio.cc.
References binio::getFlag(), putByte(), putRaw(), and binio::system_flags.
Referenced by operator<<(), and operator<<().
void binostream::writeInt | ( | Int | val, |
unsigned int | size | ||
) |
Definition at line 277 of file binio.cc.
References binio::err, binio::getFlag(), and putByte().
Referenced by operator<<(), and operator<<().
unsigned long binostream::writeString | ( | const char * | str, |
unsigned long | amount = 0 |
||
) |
Definition at line 351 of file binio.cc.
References binio::err, and putByte().
Referenced by Quantum::Number::Value::write().