ARTS 2.5.11 (git: 725533f0)
binostream Class Referenceabstract

#include <binio.h>

Inheritance diagram for binostream:
binio bofstream

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)
- Public Member Functions inherited from binio
 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

- Public Types inherited from binio
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
- Protected Types inherited from binio
using Int = std::int64_t
using Float = double
using Byte = unsigned char
using Flags = int
- Protected Attributes inherited from binio
Flags my_flags {system_flags}
Error err {NoError}
- Static Protected Attributes inherited from binio
static const Flags system_flags = binio::detect_system_flags()

Detailed Description

Definition at line 120 of file binio.h.

Member Function Documentation

◆ putByte()

virtual void binostream::putByte ( Byte  )
protectedpure virtual

Implemented in bofstream.

Referenced by writeFloat(), writeInt(), and writeString().

◆ putRaw()

virtual void binostream::putRaw ( const char *  c,
std::streamsize  n 
protectedpure virtual

Referenced by writeFloat().

◆ writeFloat()

void binostream::writeFloat ( Float  f,
FType  ft 

Definition at line 298 of file

References binio::getFlag(), putByte(), putRaw(), and binio::system_flags.

Referenced by operator<<(), and operator<<().

◆ writeInt()

void binostream::writeInt ( Int  val,
unsigned int  size 

Definition at line 277 of file

References binio::err, binio::getFlag(), and putByte().

Referenced by operator<<(), and operator<<().

◆ writeString()

unsigned long binostream::writeString ( const char *  str,
unsigned long  amount = 0 

Definition at line 351 of file

References binio::err, and putByte().

Referenced by Quantum::Number::Value::write().

The documentation for this class was generated from the following files: