ARTS
2.0.49
|
#include <binio.h>
Public Types | |
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 |
Public Member Functions | |
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 Types | |
typedef long | Int |
typedef double | Float |
typedef unsigned char | Byte |
typedef int | Flags |
Protected Attributes | |
Flags | my_flags |
Error | err |
Static Protected Attributes | |
static const Flags | system_flags = binio::detect_system_flags() |
Static Private Member Functions | |
static Flags | detect_system_flags () |
|
protected |
typedef int binio::Error |
|
protected |
|
protected |
|
protected |
enum binio::ErrorCode |
enum binio::Flag |
enum binio::FType |
enum binio::Offset |
|
staticprivate |
bool binio::eof | ( | ) |
Definition at line 115 of file binio.cc.
Referenced by binistream::ateof().
binio::Error binio::error | ( | ) |
Definition at line 107 of file binio.cc.
Referenced by main(), readppdata(), and readppheader().
bool binio::getFlag | ( | Flag | f | ) |
Definition at line 102 of file binio.cc.
References my_flags.
Referenced by binistream::readFloat(), binistream::readInt(), binostream::writeFloat(), and binostream::writeInt().
Implemented in bofstream, and bifstream.
Referenced by binistream::peekFloat(), and binistream::peekInt().
void binio::setFlag | ( | Flag | f, |
bool | set = true |
||
) |
Definition at line 94 of file binio.cc.
References my_flags.
Referenced by bifstream::bifstream(), bofstream::bofstream(), and main().
|
protected |
Definition at line 109 of file binio.h.
Referenced by binistream::ateof(), eof(), error(), bifstream::getByte(), binistream::ieee_double2float(), binistream::ieee_single2float(), binistream::peekFloat(), binistream::peekInt(), bifstream::pos(), bofstream::pos(), bofstream::putByte(), binistream::readFloat(), binistream::readInt(), binistream::readString(), bifstream::seek(), bofstream::seek(), binostream::writeFloat(), binostream::writeInt(), and binostream::writeString().
|
protected |
|
staticprotected |
Definition at line 108 of file binio.h.
Referenced by binistream::readFloat(), and binostream::writeFloat().