OpenMW
|
00001 #ifndef CSM_WOLRD_REFIDADAPTER_H 00002 #define CSM_WOLRD_REFIDADAPTER_H 00003 00004 #include <string> 00005 00006 class QVariant; 00007 00008 namespace CSMWorld 00009 { 00010 class RefIdColumn; 00011 class RefIdData; 00012 class RecordBase; 00013 00014 class RefIdAdapter 00015 { 00016 // not implemented 00017 RefIdAdapter (const RefIdAdapter&); 00018 RefIdAdapter& operator= (const RefIdAdapter&); 00019 00020 public: 00021 00022 RefIdAdapter(); 00023 00024 virtual ~RefIdAdapter(); 00025 00026 virtual QVariant getData (const RefIdColumn *column, const RefIdData& data, int idnex) 00027 const = 0; 00028 00029 virtual void setData (const RefIdColumn *column, RefIdData& data, int index, 00030 const QVariant& value) const = 0; 00032 00033 virtual std::string getId (const RecordBase& record) const = 0; 00034 }; 00035 } 00036 00037 #endif