UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
manager.h
Go to the documentation of this file.
1 #ifndef UGDK_FILESYSTEM_MANAGER_H_
2 #define UGDK_FILESYSTEM_MANAGER_H_
3 
4 #include <ugdk/filesystem.h>
5 
6 #include <string>
7 #include <memory>
8 #include <list>
9 
10 namespace ugdk {
11 namespace filesystem {
12 
13 class Manager {
14  public:
15  Manager();
16  ~Manager();
17 
18  bool Initialize();
19  void Release();
20 
21  void AddSearchPath(const std::string&);
22 
23  std::unique_ptr<File> OpenFile(const std::string& path, const char* mode = "rb") const;
24 
25  private:
26  std::list<std::string> search_paths_;
27 };
28 
29 } // namespace filesystem
30 } // namespace ugdk
31 
32 #endif // UGDK_FILESYSTEM_MANAGER_H_
Definition: animation.h:11
Definition: manager.h:13
std::unique_ptr< File > OpenFile(const std::string &path, const char *mode="rb") const
void AddSearchPath(const std::string &)