37 #ifndef AIMS_IO_PROCESS_H
38 #define AIMS_IO_PROCESS_H
223 const std::string & dataType,
234 const std::map<std::string, std::map<std::string, ProcFunc> > &
248 std::map<std::string, std::map<std::string, ProcFunc> >
_execs;
Generic finder / checker for all data objects and file formats This will replace the old AimsFinder.
Link mechanism between the Finder and a process operating on arbitrary data types.
std::map< std::string, std::map< std::string, ProcFunc > > _execs
void setReadOptions(carto::Object options)
Set reading options.
const std::map< std::string, std::map< std::string, ProcFunc > > & processTypes() const
Query registered process types.
bool(* ProcFunc)(Process &, const std::string &, Finder &)
Process function type.
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)
Process()
Attempts to read the header of filename and, if successful, calls the operator() of the process \proc...
bool execute(Finder &f, const std::string &filename)
Same as above but the header has already been read (or hand-made to fake it!)
bool execute(const std::string &filename)
Executes the process on the object / data type found in the given file.
The class for EcatSino data write operation.