forked from mirror/openmw-tes3mp
39 lines
810 B
C++
39 lines
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 \<5C> id, an exception is thrown.
|
|||
|
};
|
|||
|
}
|
|||
|
|
|||
|
#endif
|