OpenMW
apps/openmw/mwworld/esmloader.hpp
Go to the documentation of this file.
00001 #ifndef ESMLOADER_HPP
00002 #define ESMLOADER_HPP
00003 
00004 #include <vector>
00005 
00006 #include "contentloader.hpp"
00007 #include "components/esm/esmreader.hpp"
00008 
00009 namespace ToUTF8
00010 {
00011   class Utf8Encoder;
00012 }
00013 
00014 namespace MWWorld
00015 {
00016 
00017 class ESMStore;
00018 
00019 struct EsmLoader : public ContentLoader
00020 {
00021     EsmLoader(MWWorld::ESMStore& store, std::vector<ESM::ESMReader>& readers,
00022       ToUTF8::Utf8Encoder* encoder, Loading::Listener& listener);
00023 
00024     void load(const boost::filesystem::path& filepath, int& index);
00025 
00026     private:
00027       std::vector<ESM::ESMReader>& mEsm;
00028       MWWorld::ESMStore& mStore;
00029       ToUTF8::Utf8Encoder* mEncoder;
00030 };
00031 
00032 } /* namespace MWWorld */
00033 
00034 #endif // ESMLOADER_HPP