mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-04 03:11:23 +00:00
Most warnings are innocuous (wrong type-specifier for forward declarations, conversion of literals into unsigned integers, warnings about methods optimized out), but I believe actual bugs were revealed in vartypedelegate.cpp and combat.cpp.
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
#ifndef CSM_DOC_DOCUMENTMGR_H
|
|
#define CSM_DOC_DOCUMENTMGR_H
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
namespace Files
|
|
{
|
|
struct ConfigurationManager;
|
|
}
|
|
|
|
namespace CSMDoc
|
|
{
|
|
class Document;
|
|
|
|
class DocumentManager
|
|
{
|
|
std::vector<Document *> mDocuments;
|
|
const Files::ConfigurationManager& mConfiguration;
|
|
|
|
DocumentManager (const DocumentManager&);
|
|
DocumentManager& operator= (const DocumentManager&);
|
|
|
|
public:
|
|
|
|
DocumentManager (const Files::ConfigurationManager& configuration);
|
|
|
|
~DocumentManager();
|
|
|
|
Document *addDocument (const std::vector< boost::filesystem::path >& files,
|
|
const boost::filesystem::path& savePath,
|
|
bool new_);
|
|
///< The ownership of the returned document is not transferred to the caller.
|
|
///
|
|
/// \param new_ Do not load the last content file in \a files and instead create in an
|
|
/// appropriate way.
|
|
|
|
bool removeDocument (Document *document);
|
|
///< \return last document removed?
|
|
void setResourceDir (const boost::filesystem::path& parResDir);
|
|
|
|
private:
|
|
boost::filesystem::path mResDir;
|
|
};
|
|
}
|
|
|
|
#endif
|