Go to the documentation of this file.00001 #include "ForIA/IDataLoader.hh"
00002
00003 namespace ForIA{
00004
00005 DataLoaderPtr IDataLoader::create(){
00006 if(s_creators().size()==0){
00007 throw std::runtime_error("Cannot create instance of DataLoader - no implementation available. Did you compile with ROOT support?");
00008 }
00009 return s_creators()[0]->create();
00010 }
00011
00012 vector<const IDataLoader::ICreator*> &IDataLoader::s_creators(){
00013 static vector<const IDataLoader::ICreator*> creators;
00014 return creators;
00015 }
00016
00017 }