#include "config.h"
-#include <cstdio>
#include <map>
#include <stdexcept>
#include <string>
* \param path The name of the resource to find. Upon successful
* return, this is changed to an absolute path to the resource.
* \return True if a path to a resource was found, false otherwise.
- * XXX this is legacy
*/
- static bool find(const std::string& file);
-
static std::string find_file(const std::string& name);
static std::string find_file(const std::string& name,
const std::string& ext);
- /**
- * Get the path to a resource of a given name and open it if a resource
- * was found.
- * \param path The name of the resource to find. Upon successful
- * return, this is changed to an absolute path to the resource.
- * \param mode The open mode.
- * \return The FILE* if the resource was found, 0 otherwise.
- * XXX deprecated
- */
- static FILE* open_file(const std::string& path,
- const std::string& mode = "rb");
-
-
/**
* Register a type with the extension of files which this type can
* load. If any type has already been registered with the given file
const std::string& prefix = "")
{
loader_ptr loader(new specific_loader<T>(prefix));
- printf("registered type with prefix %s", loader->prefix().c_str());
call_registry(extension, loader, set);
}