|  | aimsdata
    5.1.2
    Neuroimaging data handling | 
A process to read an object of type T, even if the type on file is different. More...
#include <aims/utility/anytype_reader.h>


| Public Types | |
| typedef T | return_type | 
| typedef TConvertorFamily | convertor_type | 
|  Public Types inherited from aims::Process | |
| typedef bool(* | ProcFunc) (Process &, const std::string &, Finder &) | 
| Process function type.  More... | |
| Public Member Functions | |
| AnyTypeReaderProcess (const T &init) | |
| Initialize result with init.  More... | |
| T & | get () | 
| Get data loaded from file.  More... | |
| T const & | get () const | 
| Get data loaded from file.  More... | |
|  Public Member Functions inherited from aims::Process | |
| Process () | |
| Attempts to read the header of filenameand, if successful, calls theoperator()of the process \process.  More... | |
| virtual | ~Process () | 
| void | registerProcessType (const std::string &objType, const std::string &dataType, ProcFunc procFunc) | 
| Registers the process to call on a given (object type, data type) couple (just fills the map)  More... | |
| bool | execute (const std::string &filename) | 
| Executes the process on the object / data type found in the given file.  More... | |
| bool | execute (Finder &f, const std::string &filename) | 
| Same as above but the header has already been read (or hand-made to fake it!)  More... | |
| const std::map< std::string, std::map< std::string, ProcFunc > > & | processTypes () const | 
| Query registered process types.  More... | |
| void | setReadOptions (carto::Object options) | 
| Set reading options.  More... | |
| Additional Inherited Members | |
|  Protected Attributes inherited from aims::Process | |
| std::map< std::string, std::map< std::string, ProcFunc > > | _execs | 
| carto::Object | _options | 
A process to read an object of type T, even if the type on file is different.
This is the low-level layer: it has a strong Process flavor. If you don't need precise Process control and if your type T has a default constructor, use the AnyTypeReader class instead, that has a more Reader-like interface.
Definition at line 137 of file anytype_reader.h.
| typedef TConvertorFamily aims::AnyTypeReaderProcess< T, TConvertorFamily >::convertor_type | 
Definition at line 141 of file anytype_reader.h.
| typedef T aims::AnyTypeReaderProcess< T, TConvertorFamily >::return_type | 
Definition at line 140 of file anytype_reader.h.
| 
 | explicit | 
Initialize result with init.
NB: there is no default constructor for AnyTypeReader so that it compiles even if T itself does not have a default constructor.
Definition at line 80 of file anytype_reader_details.h.
| 
 | inline | 
| 
 | inline |