OpenMW
|
00001 #ifndef CSM_DOC_DOCUMENTMGR_H 00002 #define CSM_DOC_DOCUMENTMGR_H 00003 00004 #include <vector> 00005 #include <string> 00006 00007 #include <boost/filesystem/path.hpp> 00008 00009 namespace Files 00010 { 00011 class ConfigurationManager; 00012 } 00013 00014 namespace CSMDoc 00015 { 00016 class Document; 00017 00018 class DocumentManager 00019 { 00020 std::vector<Document *> mDocuments; 00021 const Files::ConfigurationManager& mConfiguration; 00022 00023 DocumentManager (const DocumentManager&); 00024 DocumentManager& operator= (const DocumentManager&); 00025 00026 public: 00027 00028 DocumentManager (const Files::ConfigurationManager& configuration); 00029 00030 ~DocumentManager(); 00031 00032 Document *addDocument (const std::vector< boost::filesystem::path >& files, const boost::filesystem::path& savePath, bool new_); 00037 00038 bool removeDocument (Document *document); 00040 void setResourceDir (const boost::filesystem::path& parResDir); 00041 00042 private: 00043 boost::filesystem::path mResDir; 00044 }; 00045 } 00046 00047 #endif