8#include <boost/python/class.hpp>
9#include <boost/python/reference_existing_object.hpp>
16 class_<FileLoaderRegistryImpl, boost::noncopyable>(
"FileLoaderRegistryImpl", no_init)
18 "Perform a check that that the given algorithm can load the file")
19 .def(
"Instance", &FileLoaderRegistry::Instance, return_value_policy<reference_existing_object>(),
20 "Returns a reference to the FileLoaderRegistry singleton instance")
22 "Returns the winning algorithm")
23 .staticmethod(
"Instance");
void export_FileLoaderRegistry()
Keeps a registry of algorithm's that are file loading algorithms to allow them to be searched to find...
const std::shared_ptr< IAlgorithm > chooseLoader(const std::string &filename) const
Returns the name of an Algorithm that can load the given filename.
bool canLoad(const std::string &algorithmName, const std::string &filename) const
Checks whether the given algorithm can load the file.
Manage the lifetime of a class intended to be a singleton.