forked from mirror/openmw-tes3mp
31 lines
No EOL
649 B
C++
31 lines
No EOL
649 B
C++
#ifndef CSM_DOC_DOCUMENTMGR_H
|
|
#define CSM_DOC_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 |