#include <imgclass.hpp>
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.
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) |
irawfloat::irawfloat | ( | float & | f | ) | [inline] |
Definition at line 460 of file imgclass.hpp.
std::istream& operator>> | ( | std::istream & | is, | |
const irawfloat & | r | |||
) | [friend] |
Definition at line 464 of file imgclass.hpp.
float& irawfloat::f_ [private] |
Definition at line 462 of file imgclass.hpp.