5#include "readerparams.h"
7typedef std::function<
Reader *(QString path, std::shared_ptr<ReaderParams> params)> AbstractReader;
18 Reader* createReader(QString path, std::shared_ptr<ReaderParams> params);
20 bool reg(std::string name, AbstractReader builder);
23 std::map<std::string, AbstractReader> m_availablerReader;
28template<
typename Implementation>
29Reader *builder(QString path, std::shared_ptr<ReaderParams> params){
30 return new Implementation(path, params);
33#define REGISTER_READER(name, impl) const bool res = ReaderFactory::instance().reg(name, builder<impl>);
Definition readerfactory.h:10
The Reader interface defines functions which are used for reading and parsing the import.
Definition reader.h:23