A.I.M.S


aims::DefaultItemReader< T > Class Template Reference

Default low-levels readers. More...

#include <aims/io/defaultItemR.h>

Inheritance diagram for aims::DefaultItemReader< T >:
Collaboration diagram for aims::DefaultItemReader< T >:

Public Member Functions

 DefaultItemReader ()
 
virtual ~DefaultItemReader ()
 
virtual void read (std::istream &is, T &item) const
 
virtual void read (std::istream &is, T *pitem, size_t n) const
 
virtual ItemReader< T > * reader (const std::string &openmode="binar", bool bswap=false) const
 
void read (const std::string &istring, T &item) const
 
void read (const std::string &istring, T *pitem, size_t n) const
 
template<>
void read (std::istream &, Void &) const
 
template<>
void read (std::istream &, Void *, size_t) const
 
- Public Member Functions inherited from aims::ItemReader< T >
virtual ~ItemReader ()
 
void read (const std::string &istring, T &item) const
 
void read (const std::string &istring, T *pitem, size_t n) const
 

Detailed Description

template<class T>
class aims::DefaultItemReader< T >

Default low-levels readers.

They are a default implementation of the readers for most common types, and can be specialized for other types if needed. We have aleady specialized AimsVector readers

Definition at line 55 of file defaultItemR.h.

Constructor & Destructor Documentation

template<class T>
aims::DefaultItemReader< T >::DefaultItemReader ( )
inline

Definition at line 58 of file defaultItemR.h.

template<class T>
virtual aims::DefaultItemReader< T >::~DefaultItemReader ( )
inlinevirtual

Definition at line 59 of file defaultItemR.h.

Member Function Documentation

template<class T >
void aims::DefaultItemReader< T >::read ( std::istream &  is,
T *  pitem,
size_t  n 
) const
inlinevirtual
template<class T>
void aims::DefaultItemReader< T >::read ( const std::string &  istring,
T &  item 
) const
inline

Definition at line 66 of file defaultItemR.h.

References aims::ItemReader< T >::read().

template<class T>
void aims::DefaultItemReader< T >::read ( const std::string &  istring,
T *  pitem,
size_t  n 
) const
inline

Definition at line 68 of file defaultItemR.h.

References aims::ItemReader< T >::read().

template<>
void aims::DefaultItemReader< Void >::read ( std::istream &  ,
Void  
) const
inline

Definition at line 247 of file defaultItemR.h.

template<>
void aims::DefaultItemReader< Void >::read ( std::istream &  ,
Void ,
size_t   
) const
inline

Definition at line 253 of file defaultItemR.h.

template<class T >
ItemReader< T > * aims::DefaultItemReader< T >::reader ( const std::string &  openmode = "binar",
bool  bswap = false 
) const
virtual

The documentation for this class was generated from the following file: