rawfloat Class Reference

#include <imgclass.hpp>

List of all members.


Detailed Description

Stream output manipulator for writing binary floats.

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

Example:

          ofstream p("piraw.dat");
          float pi=3.1415926535;
          p<<rawfloat(pi);

This code writes the internal binary representation of the float 3.1415926535 to p.

See also:
irawfloat

Definition at line 429 of file imgclass.hpp.


Public Member Functions

 rawfloat (const float &f)

Private Attributes

const float & f_

Static Private Attributes

static float dummy

Friends

std::ostream & operator<< (std::ostream &os, const rawfloat &r)

Constructor & Destructor Documentation

rawfloat::rawfloat ( const float &  f  )  [inline]

Definition at line 431 of file imgclass.hpp.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const rawfloat r 
) [friend]

Definition at line 435 of file imgclass.hpp.


Member Data Documentation

float rawfloat::dummy [static, private]

Definition at line 433 of file imgclass.hpp.

const float& rawfloat::f_ [private]

Definition at line 434 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