#include <imgclass.hpp>
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.
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) |
rawfloat::rawfloat | ( | const float & | f | ) | [inline] |
Definition at line 431 of file imgclass.hpp.
std::ostream& operator<< | ( | std::ostream & | os, | |
const rawfloat & | r | |||
) | [friend] |
Definition at line 435 of file imgclass.hpp.
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.