mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
31 lines
641 B
C++
31 lines
641 B
C++
|
#ifndef CSM_DOCUMENTMGR_H
|
||
|
#define CSM_DOCUMENTMGR_H
|
||
|
|
||
|
#include <vector>
|
||
|
|
||
|
namespace CSMDoc
|
||
|
{
|
||
|
class Document;
|
||
|
|
||
|
class DocumentManager
|
||
|
{
|
||
|
std::vector<Document *> mDocuments;
|
||
|
|
||
|
DocumentManager (const DocumentManager&);
|
||
|
DocumentManager& operator= (const DocumentManager&);
|
||
|
|
||
|
public:
|
||
|
|
||
|
DocumentManager();
|
||
|
|
||
|
~DocumentManager();
|
||
|
|
||
|
Document *addDocument();
|
||
|
///< The ownership of the returned document is not transferred to the caller.
|
||
|
|
||
|
bool removeDocument (Document *document);
|
||
|
///< \return last document removed?
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|