21 #include <utility/exit.hh>
26 #include <utility/vector1.hh>
50 runtime_assert( creator );
51 std::string const loader_type( creator->keyname() );
52 if ( loader_type ==
"UNDEFINED NAME" ) {
53 utility_exit_with_message(
"Can't map derived DataLoader with undefined type name.");
56 utility_exit_with_message(
"DataLoaderFactory::factory_register already has a DataLoaderCreator with name \"" + loader_type +
"\". Conflicting Filter names" );
71 if ( ! iter->second ) {
72 utility_exit_with_message(
"Error: DataLoaderCreatorOP prototype for " + loader_type +
" is NULL!" );
74 return iter->second->create_loader();
76 utility_exit_with_message( loader_type +
" is not known to the DataLoaderFactory. Was it registered via a DataLoaderRegistrator in one of the init.cc files (devel/init.cc or protocols/init.cc)?" );