OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
CSMWorld::NameRefIdAdapter< RecordT > Class Template Reference

Adapter for IDs with names (all but levelled lists and statics) More...

#include <refidadapterimp.hpp>

Inheritance diagram for CSMWorld::NameRefIdAdapter< RecordT >:
Collaboration diagram for CSMWorld::NameRefIdAdapter< RecordT >:

Public Member Functions

 NameRefIdAdapter (UniversalId::Type type, const NameColumns &columns)
 
virtual QVariant getData (const RefIdColumn *column, const RefIdData &data, int index) const
 If called on the nest column, should return QVariant(true). More...
 
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. More...
 
- Public Member Functions inherited from CSMWorld::ModelRefIdAdapter< RecordT >
 ModelRefIdAdapter (UniversalId::Type type, const ModelColumns &columns)
 
- Public Member Functions inherited from CSMWorld::BaseRefIdAdapter< RecordT >
 BaseRefIdAdapter (UniversalId::Type type, const BaseColumns &base)
 
virtual std::string getId (const RecordBase &record) const
 
virtual void setId (RecordBase &record, const std::string &id)
 
UniversalId::Type getType () const
 
- Public Member Functions inherited from CSMWorld::RefIdAdapter
 RefIdAdapter ()
 
virtual ~RefIdAdapter ()
 

Private Attributes

NameColumns mName
 

Detailed Description

template<typename RecordT>
class CSMWorld::NameRefIdAdapter< RecordT >

Adapter for IDs with names (all but levelled lists and statics)

Constructor & Destructor Documentation

template<typename RecordT >
CSMWorld::NameRefIdAdapter< RecordT >::NameRefIdAdapter ( UniversalId::Type  type,
const NameColumns columns 
)

Member Function Documentation

template<typename RecordT >
QVariant CSMWorld::NameRefIdAdapter< RecordT >::getData ( const RefIdColumn column,
const RefIdData data,
int  idnex 
) const
virtual

If called on the nest column, should return QVariant(true).

Reimplemented from CSMWorld::ModelRefIdAdapter< RecordT >.

Reimplemented in CSMWorld::WeaponRefIdAdapter, CSMWorld::NpcRefIdAdapter, CSMWorld::MiscRefIdAdapter, CSMWorld::LightRefIdAdapter, CSMWorld::DoorRefIdAdapter, CSMWorld::CreatureRefIdAdapter, CSMWorld::ContainerRefIdAdapter, CSMWorld::ClothingRefIdAdapter, CSMWorld::BookRefIdAdapter, CSMWorld::ArmorRefIdAdapter, CSMWorld::ApparatusRefIdAdapter, CSMWorld::ActorRefIdAdapter< RecordT >, CSMWorld::ActorRefIdAdapter< ESM::Creature >, CSMWorld::ActorRefIdAdapter< ESM::NPC >, CSMWorld::ToolRefIdAdapter< RecordT >, CSMWorld::EnchantableRefIdAdapter< RecordT >, CSMWorld::EnchantableRefIdAdapter< ESM::Clothing >, CSMWorld::EnchantableRefIdAdapter< ESM::Weapon >, CSMWorld::EnchantableRefIdAdapter< ESM::Armor >, CSMWorld::EnchantableRefIdAdapter< ESM::Book >, CSMWorld::IngredientRefIdAdapter, CSMWorld::PotionRefIdAdapter, CSMWorld::InventoryRefIdAdapter< RecordT >, CSMWorld::InventoryRefIdAdapter< ESM::Clothing >, CSMWorld::InventoryRefIdAdapter< ESM::Apparatus >, CSMWorld::InventoryRefIdAdapter< ESM::Weapon >, CSMWorld::InventoryRefIdAdapter< ESM::Armor >, CSMWorld::InventoryRefIdAdapter< ESM::Book >, CSMWorld::InventoryRefIdAdapter< ESM::Miscellaneous >, CSMWorld::InventoryRefIdAdapter< ESM::Light >, CSMWorld::InventoryRefIdAdapter< ESM::Potion >, and CSMWorld::InventoryRefIdAdapter< ESM::Ingredient >.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename RecordT >
void CSMWorld::NameRefIdAdapter< 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::ModelRefIdAdapter< RecordT >.

Reimplemented in CSMWorld::WeaponRefIdAdapter, CSMWorld::NpcRefIdAdapter, CSMWorld::MiscRefIdAdapter, CSMWorld::LightRefIdAdapter, CSMWorld::DoorRefIdAdapter, CSMWorld::CreatureRefIdAdapter, CSMWorld::ContainerRefIdAdapter, CSMWorld::ClothingRefIdAdapter, CSMWorld::BookRefIdAdapter, CSMWorld::ArmorRefIdAdapter, CSMWorld::ApparatusRefIdAdapter, CSMWorld::ActorRefIdAdapter< RecordT >, CSMWorld::ActorRefIdAdapter< ESM::Creature >, CSMWorld::ActorRefIdAdapter< ESM::NPC >, CSMWorld::ToolRefIdAdapter< RecordT >, CSMWorld::EnchantableRefIdAdapter< RecordT >, CSMWorld::EnchantableRefIdAdapter< ESM::Clothing >, CSMWorld::EnchantableRefIdAdapter< ESM::Weapon >, CSMWorld::EnchantableRefIdAdapter< ESM::Armor >, CSMWorld::EnchantableRefIdAdapter< ESM::Book >, CSMWorld::IngredientRefIdAdapter, CSMWorld::PotionRefIdAdapter, CSMWorld::InventoryRefIdAdapter< RecordT >, CSMWorld::InventoryRefIdAdapter< ESM::Clothing >, CSMWorld::InventoryRefIdAdapter< ESM::Apparatus >, CSMWorld::InventoryRefIdAdapter< ESM::Weapon >, CSMWorld::InventoryRefIdAdapter< ESM::Armor >, CSMWorld::InventoryRefIdAdapter< ESM::Book >, CSMWorld::InventoryRefIdAdapter< ESM::Miscellaneous >, CSMWorld::InventoryRefIdAdapter< ESM::Light >, CSMWorld::InventoryRefIdAdapter< ESM::Potion >, and CSMWorld::InventoryRefIdAdapter< ESM::Ingredient >.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

template<typename RecordT>
NameColumns CSMWorld::NameRefIdAdapter< RecordT >::mName
private

The documentation for this class was generated from the following file: