A.I.M.S


aims::ReaderAsObject Class Reference

#include <aims/io/readerasobject.h>

Inheritance diagram for aims::ReaderAsObject:
Collaboration diagram for aims::ReaderAsObject:

Public Member Functions

 ReaderAsObject (const std::string &filename="")
 
virtual ~ReaderAsObject ()
 
carto::Object read (int border=0, const std::string *format=0, int frame=-1)
 
- Public Member Functions inherited from aims::Process
 Process ()
 Attempts to read the header of filename and, if successful, calls the operator() of the 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...
 

Static Public Member Functions

template<typename T >
static bool readAsObject (Process &, const std::string &, Finder &)
 callback functions More...
 

Additional Inherited Members

- Public Types inherited from aims::Process
typedef bool(* ProcFunc )(Process &, const std::string &, Finder &)
 Process function type. More...
 
- Protected Attributes inherited from aims::Process
std::map< std::string,
std::map< std::string,
ProcFunc > > 
_execs
 
carto::Object _options
 

Detailed Description

Definition at line 43 of file readerasobject.h.

Constructor & Destructor Documentation

aims::ReaderAsObject::ReaderAsObject ( const std::string &  filename = "")
virtual aims::ReaderAsObject::~ReaderAsObject ( )
virtual

Member Function Documentation

carto::Object aims::ReaderAsObject::read ( int  border = 0,
const std::string *  format = 0,
int  frame = -1 
)
template<typename T >
bool aims::ReaderAsObject::readAsObject ( Process p,
const std::string &  fname,
Finder  
)
inlinestatic

callback functions

Definition at line 66 of file readerasobject.h.

References aims::Reader< T >::read(), and carto::Object::value().


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