OpenMW
|
#include <refidcollection.hpp>
Public Member Functions | |
RefIdCollection () | |
virtual | ~RefIdCollection () |
virtual int | getSize () const |
virtual std::string | getId (int index) const |
virtual int | getIndex (const std::string &id) const |
virtual int | getColumns () const |
virtual const ColumnBase & | getColumn (int column) const |
virtual QVariant | getData (int index, int column) const |
virtual void | setData (int index, int column, const QVariant &data) |
virtual void | removeRows (int index, int count) |
< Merge modified into base. More... | |
virtual void | cloneRecord (const std::string &origin, const std::string &destination, const UniversalId::Type type) |
virtual void | appendBlankRecord (const std::string &id, UniversalId::Type type) |
virtual int | searchId (const std::string &id) const |
virtual void | replace (int index, const RecordBase &record) |
virtual void | appendRecord (const RecordBase &record, UniversalId::Type type) |
virtual const RecordBase & | getRecord (const std::string &id) const |
virtual const RecordBase & | getRecord (int index) const |
void | load (ESM::ESMReader &reader, bool base, UniversalId::Type type) |
virtual int | getAppendIndex (const std::string &id, UniversalId::Type type) const |
virtual std::vector< std::string > | getIds (bool listDeleted) const |
virtual bool | reorderRows (int baseIndex, const std::vector< int > &newOrder) |
virtual QVariant | getNestedData (int row, int column, int subRow, int subColumn) const |
virtual NestedTableWrapperBase * | nestedTable (int row, int column) const |
virtual void | setNestedTable (int row, int column, const NestedTableWrapperBase &nestedTable) |
virtual int | getNestedRowsCount (int row, int column) const |
virtual int | getNestedColumnsCount (int row, int column) const |
NestableColumn * | getNestableColumn (int column) |
virtual void | setNestedData (int row, int column, const QVariant &data, int subRow, int subColumn) |
virtual void | removeNestedRows (int row, int column, int subRow) |
virtual void | addNestedRow (int row, int col, int position) |
void | save (int index, ESM::ESMWriter &writer) const |
const RefIdData & | getDataSet () const |
void | copyTo (int index, RefIdCollection &target) const |
Public Member Functions inherited from CSMWorld::CollectionBase | |
CollectionBase () | |
virtual | ~CollectionBase () |
int | searchColumnIndex (Columns::ColumnId id) const |
Return index of column with the given id. If no such column exists, -1 is returned. More... | |
int | findColumnIndex (Columns::ColumnId id) const |
Public Member Functions inherited from CSMWorld::NestedCollection | |
NestedCollection () | |
virtual | ~NestedCollection () |
virtual int | searchNestedColumnIndex (int parentColumn, Columns::ColumnId id) |
virtual int | findNestedColumnIndex (int parentColumn, Columns::ColumnId id) |
Private Member Functions | |
const RefIdAdapter & | findAdapter (UniversalId::Type) const |
Throws an exception if no adaptor for Type can be found. More... | |
const NestedRefIdAdapterBase & | getNestedAdapter (const ColumnBase &column, UniversalId::Type type) const |
Private Attributes | |
RefIdData | mData |
std::deque< RefIdColumn > | mColumns |
std::map< UniversalId::Type, RefIdAdapter * > | mAdapters |
std::vector< std::pair< const ColumnBase *, std::map < UniversalId::Type, NestedRefIdAdapterBase * > > > | mNestedAdapters |
CSMWorld::RefIdCollection::RefIdCollection | ( | ) |
|
virtual |
|
virtual |
type | Will be ignored, unless the collection supports multiple record types |
Implements CSMWorld::CollectionBase.
|
virtual |
If the record type does not match, an exception is thrown.
type | Will be ignored, unless the collection supports multiple record types |
Implements CSMWorld::CollectionBase.
|
virtual |
Implements CSMWorld::CollectionBase.
void CSMWorld::RefIdCollection::copyTo | ( | int | index, |
RefIdCollection & | target | ||
) | const |
|
private |
Throws an exception if no adaptor for Type can be found.
|
virtual |
type | Will be ignored, unless the collection supports multiple record types |
Implements CSMWorld::CollectionBase.
|
virtual |
Implements CSMWorld::CollectionBase.
|
virtual |
Implements CSMWorld::CollectionBase.
Implements CSMWorld::CollectionBase.
const CSMWorld::RefIdData & CSMWorld::RefIdCollection::getDataSet | ( | ) | const |
|
virtual |
|
virtual |
Return a sorted collection of all IDs
listDeleted | include deleted record in the list |
Implements CSMWorld::CollectionBase.
|
virtual |
|
virtual |
Implements CSMWorld::NestedCollection.
|
private |
|
virtual |
|
virtual |
Implements CSMWorld::CollectionBase.
|
virtual |
Implements CSMWorld::CollectionBase.
void CSMWorld::RefIdCollection::load | ( | ESM::ESMReader & | reader, |
bool | base, | ||
UniversalId::Type | type | ||
) |
|
virtual |
< Merge modified into base.
< Remove records that are flagged as erased.
Implements CSMWorld::CollectionBase.
|
virtual |
Reorder the rows [baseIndex, baseIndex+newOrder.size()) according to the indices given in newOrder (baseIndex+newOrder[0] specifies the new index of row baseIndex).
Implements CSMWorld::CollectionBase.
|
virtual |
If the record type does not match, an exception is thrown.
Implements CSMWorld::CollectionBase.
void CSMWorld::RefIdCollection::save | ( | int | index, |
ESM::ESMWriter & | writer | ||
) | const |
|
virtual |
Search record with id.
Implements CSMWorld::CollectionBase.
|
virtual |
|
private |
|
private |
|
private |
|
private |