ARTS
2.2.66
|
#include <binio.h>
Public Member Functions | |
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 |
Protected Member Functions | |
virtual Byte | getByte ()=0 |
virtual void | getRaw (char *c, streamsize n)=0 |
Private Member Functions | |
Float | ieee_single2float (Byte *data) |
Float | ieee_double2float (Byte *data) |
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 Attributes inherited from binio | |
Flags | my_flags |
Error | err |
Static Protected Attributes inherited from binio | |
static const Flags | system_flags = binio::detect_system_flags() |
bool binistream::ateof | ( | ) |
Definition at line 387 of file binio.cc.
References binio::eof(), and binio::err.
|
protectedpure virtual |
Implemented in bifstream.
|
private |
Definition at line 260 of file binio.cc.
References binio::err, binio::Fatal, HUGE_VAL, sign(), and binio::Unsupported.
|
private |
Definition at line 220 of file binio.cc.
References binio::err, binio::Fatal, HUGE_VAL, sign(), and binio::Unsupported.
binistream::Float binistream::peekFloat | ( | FType | ft | ) |
Definition at line 374 of file binio.cc.
References binio::Add, binio::Double, binio::err, binio::seek(), and binio::Single.
binistream::Int binistream::peekInt | ( | unsigned int | size | ) |
Definition at line 367 of file binio.cc.
References binio::Add, binio::err, and binio::seek().
Referenced by main().
binistream::Float binistream::readFloat | ( | FType | ft | ) |
Definition at line 154 of file binio.cc.
References binio::BigEndian, binio::Double, binio::err, binio::FloatIEEE, binio::getFlag(), binio::Single, swap(), binio::system_flags, and binio::Unsupported.
Referenced by operator>>(), and readppdata().
binistream::Int binistream::readInt | ( | unsigned int | size | ) |
Definition at line 130 of file binio.cc.
References binio::BigEndian, binio::err, binio::getFlag(), and binio::Unsupported.
Referenced by operator>>(), and readppheader().
unsigned long binistream::readString | ( | char * | str, |
unsigned long | amount | ||
) |
Definition at line 325 of file binio.cc.
References binio::err.
unsigned long binistream::readString | ( | char * | str, |
unsigned long | maxlen, | ||
const char | delim | ||
) |
Definition at line 337 of file binio.cc.
References binio::err.
std::string binistream::readString | ( | const char | delim = '\0' | ) |
Definition at line 352 of file binio.cc.
References STRINGBUFSIZE.