ARTS  2.2.66
binstream Class Reference

#include <binio.h>

Inheritance diagram for binstream:
Collaboration diagram for binstream:

Public Member Functions

 binstream ()
 
virtual ~binstream ()
 
- Public Member Functions inherited from binistream
 binistream ()
 
virtual ~binistream ()
 
Int readInt (unsigned int size)
 
Float readFloat (FType ft)
 
unsigned long readString (char *str, unsigned long amount)
 
unsigned long readString (char *str, unsigned long maxlen, const char delim)
 
std::string readString (const char delim='\0')
 
Int peekInt (unsigned int size)
 
Float peekFloat (FType ft)
 
bool ateof ()
 
void ignore (unsigned long amount=1)
 
- Public Member Functions inherited from binio
 binio ()
 
virtual ~binio ()
 
void setFlag (Flag f, bool set=true)
 
bool getFlag (Flag f)
 
Error error ()
 
bool eof ()
 
virtual void seek (long, Offset=Set)=0
 
virtual streampos pos ()=0
 
- Public Member Functions inherited from binostream
 binostream ()
 
virtual ~binostream ()
 
void writeInt (Int val, unsigned int size)
 
void writeFloat (Float f, FType ft)
 
unsigned long writeString (const char *str, unsigned long amount=0)
 
unsigned long writeString (const std::string &str)
 

Additional Inherited Members

- Public Types inherited from binio
enum  Flag { BigEndian = 1 << 0, FloatIEEE = 1 << 1 }
 
enum  ErrorCode {
  NoError = 0, Fatal = 1 << 0, Unsupported = 1 << 1, NotOpen = 1 << 2,
  Denied = 1 << 3, NotFound = 1 << 4, Eof = 1 << 5
}
 
enum  Offset { Set, Add, End }
 
enum  FType { Single, Double }
 
typedef int Error
 
- Protected Types inherited from binio
typedef long Int
 
typedef double Float
 
typedef unsigned char Byte
 
typedef int Flags
 
- Protected Member Functions inherited from binistream
virtual Byte getByte ()=0
 
virtual void getRaw (char *c, streamsize n)=0
 
- Protected Member Functions inherited from binostream
virtual void putByte (Byte)=0
 
virtual void putRaw (const char *c, streamsize n)=0
 
- Protected Attributes inherited from binio
Flags my_flags
 
Error err
 
- Static Protected Attributes inherited from binio
static const Flags system_flags = binio::detect_system_flags()
 

Detailed Description

Definition at line 172 of file binio.h.

Constructor & Destructor Documentation

◆ binstream()

binstream::binstream ( )

◆ ~binstream()

virtual binstream::~binstream ( )
virtual

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