aimsdata  4.7.0
Neuroimaging data handling
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

◆ DefaultItemReader()

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

Definition at line 58 of file defaultItemR.h.

◆ ~DefaultItemReader()

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

Definition at line 59 of file defaultItemR.h.

Member Function Documentation

◆ read() [1/6]

◆ read() [2/6]

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

◆ read() [3/6]

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().

◆ read() [4/6]

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().

◆ read() [5/6]

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

Definition at line 247 of file defaultItemR.h.

◆ read() [6/6]

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

Definition at line 253 of file defaultItemR.h.

◆ reader()


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