openmw-tes3coop/apps/opencs/model/world/refidadapter.hpp
Marek Kochanowicz 41db48720d does not compile
2014-05-27 14:01:15 +02:00

45 lines
No EOL
1.3 KiB
C++

#ifndef CSM_WOLRD_REFIDADAPTER_H
#define CSM_WOLRD_REFIDADAPTER_H
#include <string>
class QVariant;
namespace CSMWorld
{
class RefIdColumn;
class RefIdData;
class RecordBase;
class RefIdAdapter
{
// not implemented
RefIdAdapter (const RefIdAdapter&);
RefIdAdapter& operator= (const RefIdAdapter&);
public:
RefIdAdapter();
virtual ~RefIdAdapter();
virtual QVariant getData (const RefIdColumn *column, const RefIdData& data, int idnex)
const = 0;
virtual void setData (const RefIdColumn *column, RefIdData& data, int index,
const QVariant& value) const = 0;
///< If the data type does not match an exception is thrown.
virtual QVariant getData (const RefIdColumn *column, const RefIdData& data,
int idnex, int subRowIndex, int subColIndex) const;
virtual void setData (const RefIdColumn *column, RefIdData& data,
const QVariant& value, int index,
int subRowIndex, int subColIndex) const;
virtual std::string getId (const RecordBase& record) const = 0;
virtual void setId(RecordBase& record, const std::string& id) = 0;
};
}
#endif