mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 07:49:56 +00:00
39 lines
No EOL
810 B
C++
39 lines
No EOL
810 B
C++
#ifndef CSM_WOLRD_IDLIST_H
|
|
#define CSM_WOLRD_IDLIST_H
|
|
|
|
#include <map>
|
|
|
|
#include <components/esm/loadglob.hpp>
|
|
|
|
#include "idcollection.hpp"
|
|
#include "universalid.hpp"
|
|
|
|
class QAbstractTableModel;
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class Data
|
|
{
|
|
IdCollection<ESM::Global> mGlobals;
|
|
std::map<UniversalId, QAbstractTableModel *> mModels;
|
|
|
|
// not implemented
|
|
Data (const Data&);
|
|
Data& operator= (const Data&);
|
|
|
|
public:
|
|
|
|
Data();
|
|
|
|
~Data();
|
|
|
|
const IdCollection<ESM::Global>& getGlobals() const;
|
|
|
|
IdCollection<ESM::Global>& getGlobals();
|
|
|
|
QAbstractTableModel *getTableModel (const UniversalId& id);
|
|
///< If no table model is available for \æ id, an exception is thrown.
|
|
};
|
|
}
|
|
|
|
#endif |