binostream Class Reference

#include <binio.h>

Inheritance diagram for binostream:

Inheritance graph
[legend]
Collaboration diagram for binostream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 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)

Protected Member Functions

virtual void putByte (Byte)=0
virtual void putRaw (const char *c, streamsize n)=0

Private Member Functions

void float2ieee_single (Float f, Byte *data)
void float2ieee_double (Float f, Byte *data)


Detailed Description

Definition at line 150 of file binio.h.


Constructor & Destructor Documentation

binostream::binostream (  ) 

Definition at line 408 of file binio.cc.

binostream::~binostream (  )  [virtual]

Definition at line 412 of file binio.cc.


Member Function Documentation

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

Definition at line 416 of file binio.cc.

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

Referenced by operator<<().

void binostream::writeFloat ( Float  f,
FType  ft 
)

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

Definition at line 682 of file binio.cc.

References binio::err, and putByte().

Referenced by writeString().

unsigned long binostream::writeString ( const std::string &  str  ) 

Definition at line 697 of file binio.cc.

References writeString().

virtual void binostream::putByte ( Byte   )  [protected, pure virtual]

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

virtual void binostream::putRaw ( const char *  c,
streamsize  n 
) [protected, pure virtual]

Implemented in bofstream.

Referenced by writeFloat().

void binostream::float2ieee_single ( Float  f,
Byte data 
) [private]

Definition at line 551 of file binio.cc.

References SEXP_MAX, SEXP_OFFSET, SEXP_POSITION, and sign().

Referenced by writeFloat().

void binostream::float2ieee_double ( Float  f,
Byte data 
) [private]

Definition at line 609 of file binio.cc.

References DEXP_MAX, DEXP_OFFSET, DEXP_POSITION, FloatToUnsigned, and sign().

Referenced by writeFloat().


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