Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

binary data format draft 0.1 and note

The project page is http://dataio.sourceforge.net/. More...
See also:
data format draft 0.1 and note, dataio
Note:
supported primitive data type

The supported primitive data type are:

bool, char, wchar_t (wchat_t does not work?), string, int, long, unsigned, unsigned long, float, double, long double.

To add new primitive type T, specialize the following two template methods:

bool _dataiorec<T>::readitem(istream &is, T &iten); void _dataiorec<T>::writeitem(ostream &os, T const &item);

If T is supported primitive type (that above two methods is epecialized) vector <T> and vector<vector<T> > are automatically supported.

The named and unnamed data is undistinguiched, and input/putput follows the added order.

primitive type binary formats:
To process floating point binary format, useds following ANSU C functions: double frexp(double val, *n) to obtain expoent and fraction part: x = frexp(y,n) call set the values so that y = x*2^n (0 <= x < 1)

double ldexp(double val, *n) to restore value using expoent and fraction part y = ldexp(x,n) calling set the values so that y = x*2^n (0 <= x < 1)


Generated at Thu Sep 6 13:45:43 2001 for dataio by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001