X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FLoader.h;h=cf7dd132a3e76b60c44464cb44aff5a0af82a6fd;hb=8c8061a4f8b88410d6d93c039afe6affc4b69cf2;hp=7717167e30361335b1cf1ac6478f5f39f6a7f8dc;hpb=0f30d8254ff8b9e63795960ec031577cf68fbf95;p=l2e.git diff --git a/src/loader/Loader.h b/src/loader/Loader.h index 7717167..cf7dd13 100644 --- a/src/loader/Loader.h +++ b/src/loader/Loader.h @@ -1,21 +1,14 @@ -/* - * Loader.h - * - * Created on: Sep 13, 2012 - * Author: holy - */ - #ifndef LOADER_LOADER_H_ #define LOADER_LOADER_H_ #include "ObjectFile.h" #include "TypeDescription.h" -namespace loader { - #include #include -#include +#include + +namespace loader { class Loader { @@ -27,18 +20,16 @@ public: void Load(const std::string &file); private: - void LoadHeader(LoadedObjectFile &); - void LoadExports(LoadedObjectFile &); - void LinkExternals(LoadedObjectFile &); - void LoadImages(LoadedObjectFile &); - void LinkObjects(LoadedObjectFile &); - void LinkObject(LoadedObjectFile &, const TypeDescription &, char *object); + void LoadExports(char *src, Export *begin, Export *end); + void LoadExternals(char *src, External *begin, External *end); + void LoadObjects(char *src, Object *begin, Object *end); + void LoadObject(char *src, char *dest, const TypeDescription &); private: - std::map objectFiles; + std::map objectFiles; std::map exports; }; } -#endif /* LOADER_LOADER_H_ */ +#endif