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

_dataiorec Class Template Reference

io record template class used by dataio. More...

#include <dataio.h>

Inheritance diagram for _dataiorec::

_dataiorecbase List of all members.

Public Methods

bool stringtoitem (string &s, T &item)
 Specialize this methods of _dataiorec template class, if use you own primitive class that is not specialized by default and pretend to read (from text stream). See dataio class for arlead specialized classes.
See also:
itemtostring, readitem, writeitem.
More...


void itemtostring (T const &item, string &s)
 Specialize this methods of _dataiorec template class, if use you own primitive class that is not specialized by default and pretend to write (to text stream). See dataio class for arlead specialized classes.
See also:
stringtoitem, readitem, writeitem.
More...


bool readitem (istream &is, T &item)
 Specialize this methods of _dataiorec template class, if use you own primitive class that is not specialized by default and pretend to read (from binary stream). See dataio class for arlead specialized classes.
See also:
writeitem, stringtoitem, itemtostring.
More...


void writeitem (ostream &os, T const &item)
 Specialize this methods of _dataiorec template class, if use you own primitive class that is not specialized by default and pretend to write. See dataio class for arlead specialized classes.
See also:
readitem, stringtoitem, itemtostring.
More...



Detailed Description

template<class T> class _dataiorec

io record template class used by dataio.

Internal use only. In the special case that add new class and pretend that is read/writed as primitive, need to specialize the methods: bool _dataiorec<T>::stringtoitem() and bool _dataiorec<T>::itemtostring()

Definition at line 338 of file dataio.h.


Member Function Documentation

template<class T>
void _dataiorec<T>::itemtostring ( T const & item,
string & s )
 

Specialize this methods of _dataiorec template class, if use you own primitive class that is not specialized by default and pretend to write (to text stream). See dataio class for arlead specialized classes.

See also:
stringtoitem, readitem, writeitem.

template<class T>
bool _dataiorec<T>::readitem ( istream & is,
T & item )
 

Specialize this methods of _dataiorec template class, if use you own primitive class that is not specialized by default and pretend to read (from binary stream). See dataio class for arlead specialized classes.

See also:
writeitem, stringtoitem, itemtostring.

Todo:
readitem

template<class T>
bool _dataiorec<T>::stringtoitem ( string & s,
T & item )
 

Specialize this methods of _dataiorec template class, if use you own primitive class that is not specialized by default and pretend to read (from text stream). See dataio class for arlead specialized classes.

See also:
itemtostring, readitem, writeitem.

template<class T>
void _dataiorec<T>::writeitem ( ostream & os,
T const & item )
 

Specialize this methods of _dataiorec template class, if use you own primitive class that is not specialized by default and pretend to write. See dataio class for arlead specialized classes.

See also:
readitem, stringtoitem, itemtostring.

Todo:
writeitem


The documentation for this class was generated from the following file:
Generated at Thu Sep 6 13:45:42 2001 for dataio by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001