1 #ifndef LOADER_LOADER_H_
2 #define LOADER_LOADER_H_
4 #include "ObjectFile.h"
5 #include "TypeDescription.h"
20 void Load(const std::string &file);
22 const std::map<std::string, LoadedExport> &Exports() const { return exports; }
25 void LoadExports(char *src, Export *begin, Export *end);
26 void LoadExternals(char *src, External *begin, External *end);
27 void LoadImages(char *src, Image *begin, Image *end);
28 void LoadObjects(char *src, Object *begin, Object *end);
29 void LoadObject(char *src, char *dest, const TypeDescription &);
30 void LoadArrays(char *src, Array *begin, Array *end);
33 std::map<std::string, char *> objectFiles;
34 std::map<std::string, LoadedExport> exports;
35 std::map<std::string, SDL_Surface *> images;