binistream Class Reference

#include <binio.h>

Inheritance diagram for binistream:

Inheritance graph
[legend]
Collaboration diagram for binistream:

Collaboration graph
[legend]

List of all members.

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)

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)


Detailed Description

Definition at line 121 of file binio.h.


Constructor & Destructor Documentation

binistream::binistream (  ) 

Definition at line 122 of file binio.cc.

binistream::~binistream (  )  [virtual]

Definition at line 126 of file binio.cc.


Member Function Documentation

binistream::Int binistream::readInt ( unsigned int  size  ) 

Definition at line 130 of file binio.cc.

References binio::BigEndian, binio::err, getByte(), binio::getFlag(), and binio::Unsupported.

Referenced by operator>>(), peekInt(), and readppheader().

binistream::Float binistream::readFloat ( FType  ft  ) 

unsigned long binistream::readString ( char *  str,
unsigned long  amount 
)

Definition at line 325 of file binio.cc.

References binio::err, and getByte().

Referenced by readString().

unsigned long binistream::readString ( char *  str,
unsigned long  maxlen,
const char  delim 
)

Definition at line 337 of file binio.cc.

References binio::err, and getByte().

std::string binistream::readString ( const char  delim = '\0'  ) 

Definition at line 352 of file binio.cc.

References readString(), and STRINGBUFSIZE.

binistream::Int binistream::peekInt ( unsigned int  size  ) 

Definition at line 367 of file binio.cc.

References binio::Add, binio::err, readInt(), and binio::seek().

Referenced by ateof(), and main().

binistream::Float binistream::peekFloat ( FType  ft  ) 

Definition at line 374 of file binio.cc.

References binio::Add, binio::Double, binio::err, readFloat(), binio::seek(), and binio::Single.

bool binistream::ateof (  ) 

Definition at line 387 of file binio.cc.

References binio::eof(), binio::err, and peekInt().

void binistream::ignore ( unsigned long  amount = 1  ) 

Definition at line 398 of file binio.cc.

References getByte().

virtual Byte binistream::getByte (  )  [protected, pure virtual]

Implemented in bifstream.

Referenced by ignore(), readFloat(), readInt(), and readString().

virtual void binistream::getRaw ( char *  c,
streamsize  n 
) [protected, pure virtual]

Implemented in bifstream.

Referenced by readFloat().

binistream::Float binistream::ieee_single2float ( Byte data  )  [private]

Definition at line 220 of file binio.cc.

References binio::err, binio::Fatal, HUGE_VAL, sign(), and binio::Unsupported.

Referenced by readFloat().

binistream::Float binistream::ieee_double2float ( Byte data  )  [private]

Definition at line 260 of file binio.cc.

References binio::err, binio::Fatal, HUGE_VAL, sign(), and binio::Unsupported.

Referenced by readFloat().


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

Generated on Mon Mar 23 14:06:57 2009 for ARTS by  doxygen 1.5.6