OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
myguidatamanager.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_MYGUIPLATFORM_MYGUIDATAMANAGER_H
2 #define OPENMW_COMPONENTS_MYGUIPLATFORM_MYGUIDATAMANAGER_H
3 
4 #include <MyGUI_DataManager.h>
5 
6 namespace osgMyGUI
7 {
8 
9 
10 class DataManager : public MyGUI::DataManager
11 {
12 public:
13  void initialise() {}
14  void shutdown() {}
15 
16  void setResourcePath(const std::string& path);
17 
21  virtual MyGUI::IDataStream* getData(const std::string& _name);
22 
26  virtual void freeData(MyGUI::IDataStream* _data);
27 
31  virtual bool isDataExist(const std::string& _name);
32 
36  virtual const MyGUI::VectorString& getDataListNames(const std::string& _pattern);
37 
42  virtual const std::string& getDataPath(const std::string& _name);
43 
44 private:
45  std::string mResourcePath;
46 };
47 
48 }
49 
50 #endif
void initialise()
Definition: myguidatamanager.hpp:13
virtual const MyGUI::VectorString & getDataListNames(const std::string &_pattern)
Definition: myguidatamanager.cpp:43
virtual MyGUI::IDataStream * getData(const std::string &_name)
Definition: myguidatamanager.cpp:18
void setResourcePath(const std::string &path)
Definition: myguidatamanager.cpp:13
std::string mResourcePath
Definition: myguidatamanager.hpp:45
virtual bool isDataExist(const std::string &_name)
Definition: myguidatamanager.cpp:37
virtual const std::string & getDataPath(const std::string &_name)
Definition: myguidatamanager.cpp:52
void shutdown()
Definition: myguidatamanager.hpp:14
virtual void freeData(MyGUI::IDataStream *_data)
Definition: myguidatamanager.cpp:32
Definition: myguidatamanager.hpp:10