1 #ifndef CSM_WOLRD_IDTABLEBASE_H
2 #define CSM_WOLRD_IDTABLEBASE_H
4 #include <QAbstractItemModel>
46 virtual QModelIndex
getModelIndex (
const std::string&
id,
int column)
const = 0;
58 virtual std::pair<UniversalId, std::string>
view (
int row)
const = 0;
61 virtual bool isDeleted (
const std::string&
id)
const = 0;
Definition: idtablebase.hpp:32
virtual bool isDeleted(const std::string &id) const =0
Is id flagged as deleted?
virtual int searchColumnIndex(Columns::ColumnId id) const =0
unsigned int mFeatures
Definition: idtablebase.hpp:40
Definition: idtablebase.hpp:28
virtual QModelIndex getModelIndex(const std::string &id, int column) const =0
IdTableBase(unsigned int features)
Definition: idtablebase.cpp:3
Table can not be modified through ordinary means.
Definition: idtablebase.hpp:35
virtual int findColumnIndex(Columns::ColumnId id) const =0
unsigned int getFeatures() const
Definition: idtablebase.cpp:5
Definition: idtablebase.hpp:30
Definition: idtablebase.hpp:24
virtual std::pair< UniversalId, std::string > view(int row) const =0
Features
Definition: idtablebase.hpp:18
ColumnId
Definition: columns.hpp:13
virtual int getColumnId(int column) const =0
Definition: idtablebase.hpp:12
Definition: idtablebase.hpp:20