OpenMW
|
Adapter for IDs that can go into an inventory. More...
#include <refidadapterimp.hpp>
Public Member Functions | |
InventoryRefIdAdapter (UniversalId::Type type, const InventoryColumns &columns) | |
virtual QVariant | getData (const RefIdColumn *column, const RefIdData &data, int index) 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. | |
Private Attributes | |
InventoryColumns | mInventory |
Adapter for IDs that can go into an inventory.
CSMWorld::InventoryRefIdAdapter< RecordT >::InventoryRefIdAdapter | ( | UniversalId::Type | type, |
const InventoryColumns & | columns | ||
) |
QVariant CSMWorld::InventoryRefIdAdapter< RecordT >::getData | ( | const RefIdColumn * | column, |
const RefIdData & | data, | ||
int | index | ||
) | const [virtual] |
Reimplemented from CSMWorld::NameRefIdAdapter< RecordT >.
Reimplemented in CSMWorld::WeaponRefIdAdapter, CSMWorld::MiscRefIdAdapter, CSMWorld::LightRefIdAdapter, CSMWorld::ClothingRefIdAdapter, CSMWorld::BookRefIdAdapter, CSMWorld::ArmorRefIdAdapter, CSMWorld::ApparatusRefIdAdapter, CSMWorld::ToolRefIdAdapter< RecordT >, CSMWorld::EnchantableRefIdAdapter< RecordT >, CSMWorld::EnchantableRefIdAdapter< ESM::Clothing >, CSMWorld::EnchantableRefIdAdapter< ESM::Weapon >, CSMWorld::EnchantableRefIdAdapter< ESM::Armor >, CSMWorld::EnchantableRefIdAdapter< ESM::Book >, and CSMWorld::PotionRefIdAdapter.
void CSMWorld::InventoryRefIdAdapter< RecordT >::setData | ( | const RefIdColumn * | column, |
RefIdData & | data, | ||
int | index, | ||
const QVariant & | value | ||
) | const [virtual] |
If the data type does not match an exception is thrown.
Reimplemented from CSMWorld::NameRefIdAdapter< RecordT >.
Reimplemented in CSMWorld::WeaponRefIdAdapter, CSMWorld::MiscRefIdAdapter, CSMWorld::LightRefIdAdapter, CSMWorld::ClothingRefIdAdapter, CSMWorld::BookRefIdAdapter, CSMWorld::ArmorRefIdAdapter, CSMWorld::ApparatusRefIdAdapter, CSMWorld::ToolRefIdAdapter< RecordT >, CSMWorld::EnchantableRefIdAdapter< RecordT >, CSMWorld::EnchantableRefIdAdapter< ESM::Clothing >, CSMWorld::EnchantableRefIdAdapter< ESM::Weapon >, CSMWorld::EnchantableRefIdAdapter< ESM::Armor >, CSMWorld::EnchantableRefIdAdapter< ESM::Book >, and CSMWorld::PotionRefIdAdapter.
InventoryColumns CSMWorld::InventoryRefIdAdapter< RecordT >::mInventory [private] |