dwss/LoadFile.h

26 lines
429 B
C++

#ifndef LOADFILE_H
#define LOADFILE_H
#include <map>
#include <string>
#include "FileLoader.h"
typedef struct {
const char * filename;
unsigned char * data;
int length;
} fileref_t;
class LoadFile : public FileLoader
{
public:
LoadFile();
int getSize(const Path & path);
Buffer load(const Path & path);
protected:
std::map< std::string, fileref_t * > m_filemap;
};
#endif