OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
CSMWorld::IdTableBase Class Referenceabstract

#include <idtablebase.hpp>

Inheritance diagram for CSMWorld::IdTableBase:
Collaboration diagram for CSMWorld::IdTableBase:

Public Types

enum  Features {
  Feature_ReorderWithinTopic = 1, Feature_ViewId = 2, Feature_ViewCell = 4, Feature_View = Feature_ViewId | Feature_ViewCell,
  Feature_Preview = 8, Feature_Constant = 16
}
 

Public Member Functions

 IdTableBase (unsigned int features)
 
virtual QModelIndex getModelIndex (const std::string &id, int column) const =0
 
virtual int searchColumnIndex (Columns::ColumnId id) const =0
 
virtual int findColumnIndex (Columns::ColumnId id) const =0
 
virtual std::pair< UniversalId,
std::string > 
view (int row) const =0
 
virtual bool isDeleted (const std::string &id) const =0
 Is id flagged as deleted? More...
 
virtual int getColumnId (int column) const =0
 
unsigned int getFeatures () const
 

Private Attributes

unsigned int mFeatures
 

Member Enumeration Documentation

Enumerator
Feature_ReorderWithinTopic 
Feature_ViewId 

Use ID column to generate view request (ID is transformed into worldspace and original ID is passed as hint with c: prefix).

Feature_ViewCell 

Use cell column to generate view request (cell ID is transformed into worldspace and record ID is passed as hint with r: prefix).

Feature_View 
Feature_Preview 
Feature_Constant 

Table can not be modified through ordinary means.

Constructor & Destructor Documentation

CSMWorld::IdTableBase::IdTableBase ( unsigned int  features)

Member Function Documentation

virtual int CSMWorld::IdTableBase::findColumnIndex ( Columns::ColumnId  id) const
pure virtual

Return index of column with the given id. If no such column exists, an exception is thrown.

Implemented in CSMWorld::IdTable, and CSMWorld::ResourceTable.

Here is the caller graph for this function:

virtual int CSMWorld::IdTableBase::getColumnId ( int  column) const
pure virtual

Implemented in CSMWorld::IdTable, and CSMWorld::ResourceTable.

Here is the caller graph for this function:

unsigned int CSMWorld::IdTableBase::getFeatures ( ) const

Here is the caller graph for this function:

virtual QModelIndex CSMWorld::IdTableBase::getModelIndex ( const std::string &  id,
int  column 
) const
pure virtual

Implemented in CSMWorld::IdTable, and CSMWorld::ResourceTable.

Here is the caller graph for this function:

virtual bool CSMWorld::IdTableBase::isDeleted ( const std::string &  id) const
pure virtual

Is id flagged as deleted?

Implemented in CSMWorld::IdTable, and CSMWorld::ResourceTable.

virtual int CSMWorld::IdTableBase::searchColumnIndex ( Columns::ColumnId  id) const
pure virtual

Return index of column with the given id. If no such column exists, -1 is returned.

Implemented in CSMWorld::IdTable, and CSMWorld::ResourceTable.

Here is the caller graph for this function:

virtual std::pair<UniversalId, std::string> CSMWorld::IdTableBase::view ( int  row) const
pure virtual

Return the UniversalId and the hint for viewing row. If viewing is not supported by this table, return (UniversalId::Type_None, "").

Implemented in CSMWorld::IdTable, and CSMWorld::ResourceTable.

Here is the caller graph for this function:

Member Data Documentation

unsigned int CSMWorld::IdTableBase::mFeatures
private

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