34 #ifndef SOMAIO_IO_READERALGORITHM_H 35 #define SOMAIO_IO_READERALGORITHM_H 246 bool execute(
const std::string & filename );
bool execute(const std::string &filename)
Executes the algo on the object type found in the given file.
const std::map< std::string, ProcFunc > & algorithmTypes() const
Query registered process types.
bool(* ProcFunc)(ReaderAlgorithm &, carto::Object header, carto::rc_ptr< DataSource > source)
Algorithm function type.
void registerAlgorithmType(const std::string &objectType, ProcFunc procFunc)
Registers the algo function to call on a given object type (just fills the map)
Link mechanism between a data source or file and an algorithm operating on arbitrary data types...
virtual ~ReaderAlgorithm()
std::map< std::string, ProcFunc > _execs
ReaderAlgorithm(const std::string &algoname)