OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
contentloader.hpp
Go to the documentation of this file.
1 #ifndef CONTENTLOADER_HPP
2 #define CONTENTLOADER_HPP
3 
4 #include <iosfwd>
5 #include <iostream>
6 #include <boost/filesystem/path.hpp>
7 
9 
10 namespace MWWorld
11 {
12 
14 {
16  : mListener(listener)
17  {
18  }
19 
20  virtual ~ContentLoader()
21  {
22  }
23 
24  virtual void load(const boost::filesystem::path& filepath, int& index)
25  {
26  std::cout << "Loading content file " << filepath.string() << std::endl;
27  mListener.setLabel(filepath.string());
28  }
29 
30  protected:
32 };
33 
34 } /* namespace MWWorld */
35 
36 #endif /* CONTENTLOADER_HPP */
virtual void load(const boost::filesystem::path &filepath, int &index)
Definition: contentloader.hpp:24
Definition: loadinglistener.hpp:8
ContentLoader(Loading::Listener &listener)
Definition: contentloader.hpp:15
virtual ~ContentLoader()
Definition: contentloader.hpp:20
Definition: contentloader.hpp:13
Loading::Listener & mListener
Definition: contentloader.hpp:31
virtual void setLabel(const std::string &label, bool important=false)
Definition: loadinglistener.hpp:17