1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 23:49:55 +00:00
openmw-tes3mp/apps/opencs/model/world/refidadapterimp.hpp
2013-05-11 17:01:16 +02:00

28 lines
783 B
C++

#ifndef CSM_WOLRD_REFIDADAPTERIMP_H
#define CSM_WOLRD_REFIDADAPTERIMP_H
#include "refidadapter.hpp"
namespace CSMWorld
{
class StaticRefIdAdapter : public RefIdAdapter
{
const RefIdColumn *mId;
const RefIdColumn *mModified;
public:
StaticRefIdAdapter (const RefIdColumn *id, const RefIdColumn *modified);
virtual QVariant getData (const RefIdColumn *column, const RefIdData& data, int idnex)
const;
virtual void setData (const RefIdColumn *column, RefIdData& data, int index,
const QVariant& value) const;
///< If the data type does not match an exception is thrown.
virtual std::string getId (const RecordBase& record) const;
};
}
#endif