13 #ifndef WRAPPERLOADER_H 14 #define WRAPPERLOADER_H 26 typedef std::function<void(BufferReader *, const char *)>
wrapped;
36 virtual bool willLoad(
const std::string &filename)
override {
virtual bool willLoad(const std::string &filename) override
Whether this instance will process or not the specified file.
static bool endsWith(const char *const str, const char *const with)
Checks if a string ends with another one.
std::string m_name
File name.
wrapped m_function
Function to call.
Global type definitions and header inclusions.
Loader calling a function for files ending with a specific string.
std::function< void(BufferReader *, const char *)> wrapped
Wrapper to the function to call for each file.
Abstract buffer handler, processing a BufferReader.
WrapperLoader(const std::string &name, wrapped fct)
Standard construction.
virtual void load(BufferReader *reader, const std::string &filename) override
Load assets from the specified reader.