irawfloat Class Reference

#include <imgclass.hpp>

List of all members.


Detailed Description

Stream input manipulator for reading binary floats.

This class implements an input manipulator for the binary input of floats. It can be used quite intuitively.

Example:

          ifstream p("piraw.dat");
          float pi;
          p>>irawfloat(pi);

This code reads characters from the input stream that are interpreted as the internal binary representation of a float and stored in pi. If you use a datafile generated by rawfloat, you should get back the exactly same number you put into it.

See also:
rawfloat

Definition at line 458 of file imgclass.hpp.


Public Member Functions

 irawfloat (float &f)

Private Attributes

float & f_

Friends

std::istream & operator>> (std::istream &is, const irawfloat &r)

Constructor & Destructor Documentation

irawfloat::irawfloat ( float &  f  )  [inline]

Definition at line 460 of file imgclass.hpp.


Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  is,
const irawfloat r 
) [friend]

Definition at line 464 of file imgclass.hpp.


Member Data Documentation

float& irawfloat::f_ [private]

Definition at line 462 of file imgclass.hpp.


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

Generated on Fri Jul 24 12:49:18 2009 for Xgrayimg Library by  doxygen 1.5.5