1 #ifndef CSM_WOLRD_REFIDADAPTERIMP_H
2 #define CSM_WOLRD_REFIDADAPTERIMP_H
32 template<
typename RecordT>
50 const QVariant& value)
const;
56 template<
typename RecordT>
58 : mType (type), mBase (base)
61 template<
typename RecordT>
67 template<
typename RecordT>
73 template<
typename RecordT>
80 if (column==mBase.mId)
81 return QString::fromUtf8 (record.
get().mId.c_str());
83 if (column==mBase.mModified)
88 return static_cast<int> (record.
mState);
91 if (column==mBase.mType)
92 return static_cast<int> (mType);
97 template<
typename RecordT>
99 const QVariant& value)
const
104 if (column==mBase.mModified)
108 template<
typename RecordT>
123 template<
typename RecordT>
136 const QVariant& value)
const;
140 template<
typename RecordT>
145 template<
typename RecordT>
152 if (column==mModel.mModel)
153 return QString::fromUtf8 (record.
get().mModel.c_str());
158 template<
typename RecordT>
160 const QVariant& value)
const
165 RecordT record2 = record.
get();
166 if (column==mModel.mModel)
167 record2.mModel = value.toString().toUtf8().constData();
186 template<
typename RecordT>
199 const QVariant& value)
const;
203 template<
typename RecordT>
208 template<
typename RecordT>
215 if (column==mName.mName)
216 return QString::fromUtf8 (record.
get().mName.c_str());
218 if (column==mName.mScript)
219 return QString::fromUtf8 (record.
get().mScript.c_str());
224 template<
typename RecordT>
226 const QVariant& value)
const
231 RecordT record2 = record.
get();
232 if (column==mName.mName)
233 record2.mName = value.toString().toUtf8().constData();
234 else if (column==mName.mScript)
235 record2.mScript = value.toString().toUtf8().constData();
255 template<
typename RecordT>
268 const QVariant& value)
const;
272 template<
typename RecordT>
278 template<
typename RecordT>
285 if (column==mInventory.mIcon)
286 return QString::fromUtf8 (record.
get().mIcon.c_str());
288 if (column==mInventory.mWeight)
289 return record.
get().mData.mWeight;
291 if (column==mInventory.mValue)
292 return record.
get().mData.mValue;
297 template<
typename RecordT>
299 const QVariant& value)
const
304 RecordT record2 = record.
get();
305 if (column==mInventory.mIcon)
306 record2.mIcon = value.toString().toUtf8().constData();
307 else if (column==mInventory.mWeight)
308 record2.mData.mWeight = value.toFloat();
309 else if (column==mInventory.mValue)
310 record2.mData.mValue = value.toInt();
340 const QVariant& value)
const;
363 const QVariant& value)
const;
382 RefIdData& data,
int index,
int position)
const;
385 RefIdData& data,
int index,
int rowToRemove)
const;
394 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const;
397 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const;
413 template<
typename RecordT>
426 const QVariant& value)
const;
430 template<
typename RecordT>
436 template<
typename RecordT>
443 if (column==mEnchantable.mEnchantment)
444 return QString::fromUtf8 (record.
get().mEnchant.c_str());
446 if (column==mEnchantable.mEnchantmentPoints)
447 return static_cast<int> (record.
get().mData.mEnchant);
452 template<
typename RecordT>
454 int index,
const QVariant& value)
const
459 RecordT record2 = record.
get();
460 if (column==mEnchantable.mEnchantment)
461 record2.mEnchant = value.toString().toUtf8().constData();
462 else if (column==mEnchantable.mEnchantmentPoints)
463 record2.mData.mEnchant = value.toInt();
482 template<
typename RecordT>
495 const QVariant& value)
const;
499 template<
typename RecordT>
504 template<
typename RecordT>
511 if (column==mTools.mQuality)
512 return record.
get().mData.mQuality;
514 if (column==mTools.mUses)
515 return record.
get().mData.mUses;
520 template<
typename RecordT>
522 int index,
const QVariant& value)
const
527 RecordT record2 = record.
get();
528 if (column==mTools.mQuality)
529 record2.mData.mQuality = value.toFloat();
530 else if (column==mTools.mUses)
531 record2.mData.mUses = value.toInt();
557 template<
typename RecordT>
570 const QVariant& value)
const;
574 template<
typename RecordT>
580 template<
typename RecordT>
587 if (column==mActors.mHello)
588 return record.
get().mAiData.mHello;
590 if (column==mActors.mFlee)
591 return record.
get().mAiData.mFlee;
593 if (column==mActors.mFight)
594 return record.
get().mAiData.mFight;
596 if (column==mActors.mAlarm)
597 return record.
get().mAiData.mAlarm;
599 if (column==mActors.mInventory)
602 if (column==mActors.mSpells)
605 if (column==mActors.mDestinations)
608 if (column==mActors.mAiPackages)
611 std::map<const RefIdColumn *, unsigned int>::const_iterator iter =
612 mActors.mServices.find (column);
614 if (iter!=mActors.mServices.end())
615 return (record.
get().mAiData.mServices & iter->second)!=0;
620 template<
typename RecordT>
622 const QVariant& value)
const
627 RecordT record2 = record.
get();
628 if (column==mActors.mHello)
629 record2.mAiData.mHello = value.toInt();
630 else if (column==mActors.mFlee)
631 record2.mAiData.mFlee = value.toInt();
632 else if (column==mActors.mFight)
633 record2.mAiData.mFight = value.toInt();
634 else if (column==mActors.mAlarm)
635 record2.mAiData.mAlarm = value.toInt();
638 typename std::map<const RefIdColumn *, unsigned int>::const_iterator iter =
639 mActors.mServices.find (column);
640 if (iter!=mActors.mServices.end())
642 if (value.toInt()!=0)
643 record2.mAiData.mServices |= iter->second;
645 record2.mAiData.mServices &= ~iter->second;
671 const QVariant& value)
const;
691 const QVariant& value)
const;
710 const QVariant& value)
const;
728 const QVariant& value)
const;
747 const QVariant& value)
const;
753 std::map<const RefIdColumn *, unsigned int>
mFlags;
776 const QVariant& value)
const;
794 const QVariant& value)
const;
804 std::map<const RefIdColumn *, unsigned int>
mFlags;
821 const QVariant& value)
const;
837 const QVariant& value)
const;
843 std::map<const RefIdColumn *, unsigned int>
mFlags;
868 const QVariant& value)
const;
881 std::map<const RefIdColumn *, unsigned int>
mFlags;
898 const QVariant& value)
const;
912 RefIdData& data,
int index,
int position)
const;
915 RefIdData& data,
int index,
int rowToRemove)
const;
924 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const;
927 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const;
941 RefIdData& data,
int index,
int position)
const;
944 RefIdData& data,
int index,
int rowToRemove)
const;
953 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const;
956 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const;
974 RefIdData& data,
int index,
int position)
const;
977 RefIdData& data,
int index,
int rowToRemove)
const;
986 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const;
989 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const;
1003 RefIdData& data,
int index,
int position)
const;
1006 RefIdData& data,
int index,
int rowToRemove)
const;
1012 const RefIdData& data,
int index)
const;
1015 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const;
1018 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const;
1032 RefIdData& data,
int index,
int position)
const;
1035 RefIdData& data,
int index,
int rowToRemove)
const;
1041 const RefIdData& data,
int index)
const;
1044 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const;
1047 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const;
1065 RefIdData& data,
int index,
int position)
const;
1068 RefIdData& data,
int index,
int rowToRemove)
const;
1074 const RefIdData& data,
int index)
const;
1077 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const;
1080 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const;
1087 template<
typename ESXRecordT>
1090 template<
typename ESXRecordT>
1106 RefIdData& data,
int index,
int position)
const
1114 RefIdData& data,
int index,
int rowToRemove)
const
1138 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const
1146 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const
1167 template <
typename ESXRecordT>
1183 RefIdData& data,
int index,
int position)
const
1187 ESXRecordT container = record.
get();
1189 std::vector<ESM::ContItem>&
list = container.mInventory.mList;
1193 if (position >= (
int)list.size())
1194 list.push_back(newRow);
1196 list.insert(list.begin()+position, newRow);
1202 RefIdData& data,
int index,
int rowToRemove)
const
1206 ESXRecordT container = record.
get();
1208 std::vector<ESM::ContItem>&
list = container.mInventory.mList;
1210 if (rowToRemove < 0 || rowToRemove >= static_cast<int> (list.size()))
1211 throw std::runtime_error (
"index out of range");
1213 list.erase (list.begin () + rowToRemove);
1223 ESXRecordT container = record.
get();
1225 container.mInventory.mList =
1242 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const
1247 const std::vector<ESM::ContItem>&
list = record.
get().mInventory.mList;
1249 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
1250 throw std::runtime_error (
"index out of range");
1254 switch (subColIndex)
1256 case 0:
return QString::fromUtf8(content.
mItem.
toString().c_str());
1257 case 1:
return content.
mCount;
1259 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
1264 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const
1268 ESXRecordT container = record.
get();
1269 std::vector<ESM::ContItem>&
list = container.mInventory.mList;
1271 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
1272 throw std::runtime_error (
"index out of range");
1277 list.at(subRowIndex).mItem.assign(std::string(value.toString().toUtf8().constData()));
1281 list.at(subRowIndex).mCount = value.toInt();
1285 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
1301 return static_cast<int>(record.
get().mInventory.mList.size());
1305 template <
typename ESXRecordT>
1321 RefIdData& data,
int index,
int position)
const
1325 ESXRecordT caster = record.
get();
1327 std::vector<std::string>&
list = caster.mSpells.mList;
1329 std::string newString;
1331 if (position >= (
int)list.size())
1332 list.push_back(newString);
1334 list.insert(list.begin()+position, newString);
1340 RefIdData& data,
int index,
int rowToRemove)
const
1344 ESXRecordT caster = record.
get();
1346 std::vector<std::string>&
list = caster.mSpells.mList;
1348 if (rowToRemove < 0 || rowToRemove >= static_cast<int> (list.size()))
1349 throw std::runtime_error (
"index out of range");
1351 list.erase (list.begin () + rowToRemove);
1361 ESXRecordT caster = record.
get();
1363 caster.mSpells.mList =
1380 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const
1385 const std::vector<std::string>&
list = record.
get().mSpells.mList;
1387 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
1388 throw std::runtime_error (
"index out of range");
1390 const std::string& content = list.at(subRowIndex);
1392 if (subColIndex == 0)
1393 return QString::fromUtf8(content.c_str());
1395 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
1399 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const
1403 ESXRecordT caster = record.
get();
1404 std::vector<std::string>&
list = caster.mSpells.mList;
1406 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
1407 throw std::runtime_error (
"index out of range");
1409 if (subColIndex == 0)
1410 list.at(subRowIndex) = std::string(value.toString().toUtf8());
1412 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
1427 return static_cast<int>(record.
get().mSpells.mList.size());
1431 template <
typename ESXRecordT>
1447 RefIdData& data,
int index,
int position)
const
1451 ESXRecordT traveller = record.
get();
1453 std::vector<ESM::Transport::Dest>&
list = traveller.mTransport.mList;
1456 for (
unsigned i = 0; i < 3; ++i)
1463 newRow.
mPos = newPos;
1466 if (position >= (
int)list.size())
1467 list.push_back(newRow);
1469 list.insert(list.begin()+position, newRow);
1475 RefIdData& data,
int index,
int rowToRemove)
const
1479 ESXRecordT traveller = record.
get();
1481 std::vector<ESM::Transport::Dest>&
list = traveller.mTransport.mList;
1483 if (rowToRemove < 0 || rowToRemove >= static_cast<int> (list.size()))
1484 throw std::runtime_error (
"index out of range");
1486 list.erase (list.begin () + rowToRemove);
1496 ESXRecordT traveller = record.
get();
1498 traveller.mTransport.mList =
1515 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const
1520 const std::vector<ESM::Transport::Dest>&
list = record.
get().mTransport.mList;
1522 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
1523 throw std::runtime_error (
"index out of range");
1527 switch (subColIndex)
1529 case 0:
return QString::fromUtf8(content.
mCellName.c_str());
1530 case 1:
return content.
mPos.
pos[0];
1531 case 2:
return content.
mPos.
pos[1];
1532 case 3:
return content.
mPos.
pos[2];
1533 case 4:
return content.
mPos.
rot[0];
1534 case 5:
return content.
mPos.
rot[1];
1535 case 6:
return content.
mPos.
rot[2];
1537 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
1542 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const
1546 ESXRecordT traveller = record.
get();
1547 std::vector<ESM::Transport::Dest>&
list = traveller.mTransport.mList;
1549 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
1550 throw std::runtime_error (
"index out of range");
1554 case 0: list.at(subRowIndex).mCellName = std::string(value.toString().toUtf8().constData());
break;
1555 case 1: list.at(subRowIndex).mPos.pos[0] = value.toFloat();
break;
1556 case 2: list.at(subRowIndex).mPos.pos[1] = value.toFloat();
break;
1557 case 3: list.at(subRowIndex).mPos.pos[2] = value.toFloat();
break;
1558 case 4: list.at(subRowIndex).mPos.rot[0] = value.toFloat();
break;
1559 case 5: list.at(subRowIndex).mPos.rot[1] = value.toFloat();
break;
1560 case 6: list.at(subRowIndex).mPos.rot[2] = value.toFloat();
break;
1562 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
1578 return static_cast<int>(record.
get().mTransport.mList.size());
1582 template <
typename ESXRecordT>
1600 RefIdData& data,
int index,
int position)
const
1604 ESXRecordT actor = record.
get();
1606 std::vector<ESM::AIPackage>&
list = actor.mAiPackage.mList;
1613 for (
int i = 0; i < 8; ++i)
1618 if (position >= (
int)list.size())
1619 list.push_back(newRow);
1621 list.insert(list.begin()+position, newRow);
1627 RefIdData& data,
int index,
int rowToRemove)
const
1631 ESXRecordT actor = record.
get();
1633 std::vector<ESM::AIPackage>&
list = actor.mAiPackage.mList;
1635 if (rowToRemove < 0 || rowToRemove >= static_cast<int> (list.size()))
1636 throw std::runtime_error (
"index out of range");
1638 list.erase (list.begin () + rowToRemove);
1648 ESXRecordT actor = record.
get();
1650 actor.mAiPackage.mList =
1667 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const
1672 const std::vector<ESM::AIPackage>&
list = record.
get().mAiPackage.mList;
1674 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
1675 throw std::runtime_error (
"index out of range");
1679 switch (subColIndex)
1683 switch (content.
mType)
1691 default:
return QVariant();
1718 return static_cast<int>(content.
mWander.
mIdle[subColIndex-4]);
1738 return QString::fromUtf8(content.
mCellName.c_str());
1763 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
1768 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const
1772 ESXRecordT actor = record.
get();
1773 std::vector<ESM::AIPackage>&
list = actor.mAiPackage.mList;
1775 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
1776 throw std::runtime_error (
"index out of range");
1783 switch (value.toInt())
1823 content.
mWander.
mIdle[subColIndex-4] =
static_cast<unsigned char>(value.toInt());
1851 content.
mCellName = std::string(value.toString().toUtf8().constData());
1884 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
1900 return static_cast<int>(record.
get().mAiPackage.mList.size());
1905 template <
typename ESXRecordT>
1921 RefIdData& data,
int index,
int position)
const
1925 ESXRecordT apparel = record.
get();
1927 std::vector<ESM::PartReference>&
list = apparel.mParts.mParts;
1934 if (position >= (
int)list.size())
1935 list.push_back(newPart);
1937 list.insert(list.begin()+position, newPart);
1943 RefIdData& data,
int index,
int rowToRemove)
const
1947 ESXRecordT apparel = record.
get();
1949 std::vector<ESM::PartReference>&
list = apparel.mParts.mParts;
1951 if (rowToRemove < 0 || rowToRemove >= static_cast<int> (list.size()))
1952 throw std::runtime_error (
"index out of range");
1954 list.erase (list.begin () + rowToRemove);
1964 ESXRecordT apparel = record.
get();
1966 apparel.mParts.mParts =
1983 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const
1988 const std::vector<ESM::PartReference>&
list = record.
get().mParts.mParts;
1990 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
1991 throw std::runtime_error (
"index out of range");
1995 switch (subColIndex)
2000 return content.
mPart;
2002 throw std::runtime_error(
"Part Reference Type unexpected value");
2004 case 1:
return QString(content.
mMale.c_str());
2005 case 2:
return QString(content.
mFemale.c_str());
2007 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
2012 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const
2016 ESXRecordT apparel = record.
get();
2017 std::vector<ESM::PartReference>&
list = apparel.mParts.mParts;
2019 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
2020 throw std::runtime_error (
"index out of range");
2024 case 0: list.at(subRowIndex).mPart =
static_cast<unsigned char>(value.toInt());
break;
2025 case 1: list.at(subRowIndex).mMale = value.toString().toStdString();
break;
2026 case 2: list.at(subRowIndex).mFemale = value.toString().toStdString();
break;
2028 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
2044 return static_cast<int>(record.
get().mParts.mParts.size());
2057 template<
typename RecordT>
2070 const QVariant& value)
const;
2074 template<
typename RecordT>
2080 template<
typename RecordT>
2084 if (column==mLevList.mLevList || column == mLevList.mNestedListLevList)
2090 template<
typename RecordT>
2092 const QVariant& value)
const
2100 template <
typename ESXRecordT>
2117 RefIdData& data,
int index,
int position)
const
2119 throw std::logic_error (
"cannot add a row to a fixed table");
2123 RefIdData& data,
int index,
int rowToRemove)
const
2125 throw std::logic_error (
"cannot remove a row to a fixed table");
2131 throw std::logic_error (
"table operation not supported");
2137 throw std::logic_error (
"table operation not supported");
2141 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const
2148 switch (subColIndex)
2150 case 0:
return QVariant();
2152 case 2:
return static_cast<int> (record.
get().mChanceNone);
2154 throw std::runtime_error(
"Trying to access non-existing column in levelled creatues!");
2159 switch (subColIndex)
2163 case 2:
return static_cast<int> (record.
get().mChanceNone);
2165 throw std::runtime_error(
"Trying to access non-existing column in levelled items!");
2171 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const
2175 ESXRecordT leveled = record.
get();
2191 leveled.mFlags &= ~ESM::CreatureLevList::AllLevels;
2195 case 2: leveled.mChanceNone =
static_cast<unsigned char>(value.toInt());
break;
2197 throw std::runtime_error(
"Trying to set non-existing column in levelled creatures!");
2213 leveled.mFlags &= ~ESM::ItemLevList::Each;
2226 leveled.mFlags &= ~ESM::ItemLevList::AllLevels;
2230 case 2: leveled.mChanceNone =
static_cast<unsigned char>(value.toInt());
break;
2232 throw std::runtime_error(
"Trying to set non-existing column in levelled items!");
2251 template <
typename ESXRecordT>
2267 RefIdData& data,
int index,
int position)
const
2271 ESXRecordT leveled = record.
get();
2273 std::vector<ESM::LevelledListBase::LevelItem>&
list = leveled.mList;
2279 if (position >= (
int)list.size())
2280 list.push_back(newItem);
2282 list.insert(list.begin()+position, newItem);
2288 RefIdData& data,
int index,
int rowToRemove)
const
2292 ESXRecordT leveled = record.
get();
2294 std::vector<ESM::LevelledListBase::LevelItem>&
list = leveled.mList;
2296 if (rowToRemove < 0 || rowToRemove >= static_cast<int> (list.size()))
2297 throw std::runtime_error (
"index out of range");
2299 list.erase (list.begin () + rowToRemove);
2309 ESXRecordT leveled = record.
get();
2328 const RefIdData& data,
int index,
int subRowIndex,
int subColIndex)
const
2333 const std::vector<ESM::LevelledListBase::LevelItem>&
list = record.
get().mList;
2335 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
2336 throw std::runtime_error (
"index out of range");
2340 switch (subColIndex)
2342 case 0:
return QString(content.
mId.c_str());
2343 case 1:
return content.
mLevel;
2345 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
2350 RefIdData& data,
int row,
const QVariant& value,
int subRowIndex,
int subColIndex)
const
2354 ESXRecordT leveled = record.
get();
2355 std::vector<ESM::LevelledListBase::LevelItem>&
list = leveled.mList;
2357 if (subRowIndex < 0 || subRowIndex >= static_cast<int> (list.size()))
2358 throw std::runtime_error (
"index out of range");
2362 case 0: list.at(subRowIndex).mId = value.toString().toStdString();
break;
2363 case 1: list.at(subRowIndex).mLevel =
static_cast<short>(value.toInt());
break;
2365 throw std::runtime_error(
"Trying to access non-existing column in the nested table!");
2381 return static_cast<int>(record.
get().mList.size());
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.
Definition: refidadapterimp.cpp:229
NpcMiscRefIdAdapter & operator=(const NpcMiscRefIdAdapter &)
const RefIdColumn * mType
Definition: refidadapterimp.hpp:677
virtual ~NestedListLevListRefIdAdapter()
Definition: refidadapterimp.hpp:2114
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.
Definition: refidadapterimp.hpp:453
Definition: aipackage.hpp:66
const RefIdColumn * mHealth
Definition: refidadapterimp.hpp:678
const RefIdColumn * mThrust[2]
Definition: refidadapterimp.hpp:880
const RefIdColumn * mArmor
Definition: refidadapterimp.hpp:679
ModelColumns mModel
Definition: refidadapterimp.hpp:126
Definition: nestedtablewrapper.hpp:6
Adapter for IDs with names (all but levelled lists and statics)
Definition: refidadapterimp.hpp:187
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.hpp:1201
InventoryRefIdAdapter(UniversalId::Type type, const InventoryColumns &columns)
Definition: refidadapterimp.hpp:273
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.hpp:279
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.
Definition: refidadapterimp.cpp:559
const RefIdColumn * mPartRef
Definition: refidadapterimp.hpp:680
const RefIdColumn * mNestedListLevList
Definition: refidadapterimp.hpp:2052
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.cpp:1002
NestedListLevListRefIdAdapter(UniversalId::Type type)
Definition: refidadapterimp.hpp:2111
EnchantableRefIdAdapter(UniversalId::Type type, const EnchantableColumns &columns)
Definition: refidadapterimp.hpp:431
Definition: loadarmo.hpp:47
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:309
std::string mId
Definition: loadlevlist.hpp:33
Definition: refidadapterimp.hpp:872
Definition: refidadapterimp.hpp:23
IngredientRefIdAdapter(const IngredientColumns &columns)
Definition: refidadapterimp.cpp:61
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:706
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:2327
NestedTravelRefIdAdapter & operator=(const NestedTravelRefIdAdapter &)
const RefIdColumn * mDestinations
Definition: refidadapterimp.hpp:549
std::string mMale
Definition: loadarmo.hpp:50
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.hpp:1218
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:544
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.
Definition: refidadapterimp.hpp:225
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.hpp:2239
CreatureAttributesRefIdAdapter()
Definition: refidadapterimp.cpp:1113
virtual ~NestedLevListRefIdAdapter()
Definition: refidadapterimp.hpp:2264
virtual ~NestedSpellRefIdAdapter()
Definition: refidadapterimp.hpp:1318
UniversalId::Type mType
Definition: refidadapterimp.hpp:1585
State mState
Definition: record.hpp:19
ModelRefIdAdapter(UniversalId::Type type, const ModelColumns &columns)
Definition: refidadapterimp.hpp:141
const RefIdColumn * mType
Definition: refidadapterimp.hpp:716
float pos[3]
Definition: defs.hpp:40
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:658
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.hpp:1105
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.hpp:2122
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.hpp:1568
PotionColumns mColumns
Definition: refidadapterimp.hpp:329
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.
Definition: refidadapterimp.cpp:615
Definition: nestedcoladapterimp.hpp:229
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:468
AIWander mWander
Definition: aipackage.hpp:79
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:116
Definition: loadcont.hpp:19
const RefIdColumn * mAlarm
Definition: refidadapterimp.hpp:546
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.cpp:795
std::string mCellName
Definition: transport.hpp:22
AITarget mTarget
Definition: aipackage.hpp:81
std::string mCellName
Definition: aipackage.hpp:87
const RefIdColumn * mInventory
Definition: refidadapterimp.hpp:547
Definition: refidadapterimp.hpp:351
int mCount
Definition: loadcont.hpp:21
NestedLevListRefIdAdapter(UniversalId::Type type)
Definition: refidadapterimp.hpp:2262
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:1895
virtual std::string getId(const RecordBase &record) const
Definition: refidadapterimp.hpp:68
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.
Definition: refidadapterimp.cpp:501
const RefIdColumn * mColor
Definition: refidadapterimp.hpp:802
short mDuration
Definition: aipackage.hpp:32
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.hpp:1446
NAME32 mItem
Definition: loadcont.hpp:22
NpcColumns mColumns
Definition: refidadapterimp.hpp:858
Definition: refidadapterimp.hpp:934
EffectsRefIdAdapter(const EffectsRefIdAdapter &)
Definition: transport.hpp:19
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:1280
const RefIdColumn * mSound
Definition: refidadapterimp.hpp:803
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:2140
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:2244
NestedListLevListRefIdAdapter & operator=(const NestedListLevListRefIdAdapter &)
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:1108
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.hpp:1474
Definition: refidadapterimp.hpp:825
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:2349
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:1261
Definition: refidadapterimp.hpp:996
unsigned char mPart
Definition: loadarmo.hpp:49
Type
Definition: universalid.hpp:40
Adapter for IDs with models (all but levelled lists)
Definition: refidadapterimp.hpp:124
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.cpp:103
const RefIdColumn * mWeight
Definition: refidadapterimp.hpp:248
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.cpp:1228
const RefIdColumn * mType
Definition: refidadapterimp.hpp:659
const RefIdColumn * mScale
Definition: refidadapterimp.hpp:755
Definition: aipackage.hpp:63
Definition: refiddata.hpp:219
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.hpp:74
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.hpp:1491
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.cpp:1298
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.
Definition: refidadapterimp.hpp:621
NpcRefIdAdapter(const NpcColumns &columns)
Definition: refidadapterimp.cpp:702
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.cpp:1327
const RefIdColumn * mPartRef
Definition: refidadapterimp.hpp:717
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:960
const RefIdColumn * mScript
Definition: refidadapterimp.hpp:180
std::map< const RefIdColumn *, unsigned int > mFlags
Definition: refidadapterimp.hpp:753
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:1339
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.cpp:979
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:928
WeaponColumns(const EnchantableColumns &columns)
Definition: refidadapterimp.cpp:1396
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:1422
AIActivate mActivate
Definition: aipackage.hpp:82
BaseRefIdAdapter(UniversalId::Type type, const BaseColumns &base)
Definition: refidadapterimp.hpp:57
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.hpp:2128
const RefIdColumn * mKey
Definition: refidadapterimp.hpp:827
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:834
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:1142
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.hpp:2371
BodyPartRefIdAdapter(const BodyPartRefIdAdapter &)
IngredEffectRefIdAdapter()
Definition: refidadapterimp.cpp:84
const RefIdColumn * mOriginal
Definition: refidadapterimp.hpp:756
Definition: refidadapterimp.hpp:1054
Definition: refidadapterimp.hpp:675
EnchantableColumns(const InventoryColumns &base)
Definition: refidadapterimp.hpp:409
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.cpp:1116
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.
Definition: refidadapterimp.cpp:670
virtual void setData(Record< ESXRecordT > &record, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: nestedcoladapterimp.hpp:348
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:66
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.hpp:209
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.hpp:1153
Definition: refidadapterimp.hpp:714
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.cpp:908
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:1248
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:1145
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.cpp:807
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.cpp:1222
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:1398
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.cpp:1208
NestedTravelRefIdAdapter(const NestedTravelRefIdAdapter &)
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:398
NestedInventoryRefIdAdapter & operator=(const NestedInventoryRefIdAdapter &)
NpcColumns(const ActorColumns &actorColumns)
Definition: refidadapterimp.cpp:690
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:1014
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:214
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.cpp:91
int mType
Definition: aipackage.hpp:74
Definition: refidadapterimp.hpp:695
ActorAiRefIdAdapter(UniversalId::Type type)
Definition: refidadapterimp.hpp:1593
const RefIdColumn * mSpells
Definition: refidadapterimp.hpp:548
const RefIdColumn * mMisc
Definition: refidadapterimp.hpp:851
NAME32 mName
Definition: aipackage.hpp:54
const RefIdColumn * mText
Definition: refidadapterimp.hpp:699
InventoryColumns mInventory
Definition: refidadapterimp.hpp:258
UniversalId::Type mType
Definition: refidadapterimp.hpp:369
Definition: aipackage.hpp:62
Definition: columnbase.hpp:20
virtual ~BodyPartRefIdAdapter()
Definition: refidadapterimp.hpp:1918
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.
Definition: refidadapterimp.cpp:75
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:1303
State
Definition: record.hpp:10
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.hpp:1920
LevListColumns mLevList
Definition: refidadapterimp.hpp:2060
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:2011
float mZ
Definition: aipackage.hpp:46
Definition: refidadapter.hpp:24
const RefIdColumn * mOrganic
Definition: refidadapterimp.hpp:735
BookRefIdAdapter(const EnchantableColumns &columns, const RefIdColumn *scroll, const RefIdColumn *skill, const RefIdColumn *text)
Definition: refidadapterimp.cpp:303
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:1060
const RefIdColumn * mIcon
Definition: refidadapterimp.hpp:247
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:1403
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.cpp:1103
Definition: refidadapterimp.hpp:809
Definition: loadlevlist.hpp:75
Definition: refidadapterimp.hpp:1432
NpcSkillsRefIdAdapter()
Definition: refidadapterimp.cpp:899
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.hpp:2266
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.cpp:914
NestedSpellRefIdAdapter(const NestedSpellRefIdAdapter &)
NameColumns mName
Definition: refidadapterimp.hpp:189
UniversalId::Type mType
Definition: refidadapterimp.hpp:1093
const RecordBase & getRecord(const LocalIndex &index) const
Definition: refiddata.cpp:122
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:1666
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.hpp:1320
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.hpp:1626
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:1263
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:2170
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.cpp:1008
NestedInventoryRefIdAdapter(const NestedInventoryRefIdAdapter &)
Definition: refidadapterimp.hpp:2252
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.cpp:888
const RefIdColumn * mEffects
Definition: refidadapterimp.hpp:346
CreatureColumns(const ActorColumns &actorColumns)
Definition: refidadapterimp.cpp:454
NameColumns(const ModelColumns &base)
Definition: refidadapterimp.hpp:182
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.hpp:1942
const RefIdColumn * mType
Definition: refidadapterimp.hpp:874
ActorRefIdAdapter(UniversalId::Type type, const ActorColumns &columns)
Definition: refidadapterimp.hpp:575
Definition: refidcollection.hpp:24
UniversalId::Type mType
Definition: refidadapterimp.hpp:2103
Adapter for IDs that can go into an inventory.
Definition: refidadapterimp.hpp:256
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:2134
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:1391
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.cpp:1386
Definition: aipackage.hpp:67
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.
Definition: refidadapterimp.cpp:372
UniversalId::Type mType
Definition: refidadapterimp.hpp:1434
IngredientColumns(const InventoryColumns &columns)
Definition: refidadapterimp.cpp:58
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.cpp:1234
NestedListLevListRefIdAdapter(const NestedListLevListRefIdAdapter &)
UniversalId::Type mType
Definition: refidadapterimp.hpp:35
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.
Definition: refidadapterimp.cpp:747
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:1296
float mY
Definition: aipackage.hpp:46
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.hpp:1113
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:1379
NestedTravelRefIdAdapter(UniversalId::Type type)
Definition: refidadapterimp.hpp:1442
const RefIdColumn * mModified
Definition: refidadapterimp.hpp:26
ContainerRefIdAdapter(const NameColumns &columns, const RefIdColumn *weight, const RefIdColumn *organic, const RefIdColumn *respawn, const RefIdColumn *content)
Definition: refidadapterimp.cpp:392
const RefIdColumn * mChop[2]
Definition: refidadapterimp.hpp:878
const RefIdColumn * mEnchantmentPoints
Definition: refidadapterimp.hpp:407
MiscRefIdAdapter(const InventoryColumns &columns, const RefIdColumn *key)
Definition: refidadapterimp.cpp:654
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.
Definition: refidadapterimp.cpp:1442
Definition: refidadapterimp.hpp:541
Definition: refidadapterimp.hpp:657
const RefIdColumn * mAttributes
Definition: refidadapterimp.hpp:757
const RefIdColumn * mId
Definition: refidadapterimp.hpp:25
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.
Definition: refidadapterimp.cpp:279
UniversalId::Type getType() const
Definition: refidadapterimp.hpp:109
UniversalId::Type mType
Definition: refidadapterimp.hpp:1308
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:1504
virtual void setId(RecordBase &record, const std::string &id)
Definition: refidadapterimp.hpp:62
DoorRefIdAdapter(const NameColumns &columns, const RefIdColumn *openSound, const RefIdColumn *closeSound)
Definition: refidadapterimp.cpp:538
CreatureMiscRefIdAdapter & operator=(const CreatureMiscRefIdAdapter &)
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:258
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:2039
std::string toString() const
Definition: esmcommon.hpp:58
const RefIdColumn * mAttributes
Definition: refidadapterimp.hpp:849
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.hpp:146
Definition: aipackage.hpp:65
const RefIdColumn * mContent
Definition: refidadapterimp.hpp:737
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:1159
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.cpp:97
LevelledListRefIdAdapter(UniversalId::Type type, const LevListColumns &columns)
Definition: refidadapterimp.hpp:2075
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:1541
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:1972
virtual ~EffectsRefIdAdapter()
Definition: refidadapterimp.hpp:1103
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.hpp:1417
InventoryColumns(const NameColumns &base)
Definition: refidadapterimp.hpp:251
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.hpp:2287
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.hpp:1643
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.hpp:1599
Definition: refidadapterimp.hpp:2049
virtual void setTable(Record< ESXRecordT > &record, const NestedTableWrapperBase &nestedTable) const
Definition: nestedcoladapterimp.hpp:270
NpcAttributesRefIdAdapter()
Definition: refidadapterimp.cpp:792
NestedLevListRefIdAdapter & operator=(const NestedLevListRefIdAdapter &)
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:357
NestedInventoryRefIdAdapter(UniversalId::Type type)
Definition: refidadapterimp.hpp:1178
Definition: refidadapterimp.hpp:780
PotionRefIdAdapter(const PotionColumns &columns, const RefIdColumn *autoCalc)
Definition: refidadapterimp.cpp:15
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.hpp:1959
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:1231
virtual ~ActorAiRefIdAdapter()
Definition: refidadapterimp.hpp:1595
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:202
virtual ~IngredEffectRefIdAdapter()
Definition: refidadapterimp.cpp:88
Definition: loadlevlist.hpp:81
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.
Definition: refidadapterimp.cpp:420
AITravel mTravel
Definition: aipackage.hpp:80
Definition: refidadapterimp.hpp:1906
const RefIdColumn * mFaction
Definition: refidadapterimp.hpp:846
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.hpp:437
std::map< const RefIdColumn *, unsigned int > mServices
Definition: refidadapterimp.hpp:551
unsigned char mTimeOfDay
Definition: aipackage.hpp:33
Definition: refidadapterimp.hpp:245
const RefIdColumn * mMisc
Definition: refidadapterimp.hpp:759
Definition: refidadapterimp.hpp:732
std::map< const RefIdColumn *, unsigned int > mFlags
Definition: refidadapterimp.hpp:843
virtual ~CreatureMiscRefIdAdapter()
Definition: refidadapterimp.cpp:1312
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.hpp:1356
WeaponRefIdAdapter(const WeaponColumns &columns)
Definition: refidadapterimp.cpp:1399
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.cpp:1315
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.hpp:1291
const RefIdColumn * mHair
Definition: refidadapterimp.hpp:847
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:1155
const RefIdColumn * mFlee
Definition: refidadapterimp.hpp:544
const ESXRecordT & get() const
Throws an exception, if the record is deleted.
Definition: record.hpp:106
Definition: refidadapterimp.hpp:1306
Definition: aipackage.hpp:72
LightColumns mColumns
Definition: refidadapterimp.hpp:811
short mDistance
Definition: aipackage.hpp:31
ModelColumns(const BaseColumns &base)
Definition: refidadapterimp.hpp:119
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:1982
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.hpp:2034
const RefIdColumn * mAutoCalc
Definition: refidadapterimp.hpp:330
const RefIdColumn * mHealth
Definition: refidadapterimp.hpp:875
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:1573
Definition: refidadapterimp.hpp:115
WeaponColumns mColumns
Definition: refidadapterimp.hpp:888
const RefIdColumn * mRespawn
Definition: refidadapterimp.hpp:736
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:893
const RefIdColumn * mName
Definition: refidadapterimp.hpp:179
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:1362
const RefIdColumn * mAiPackages
Definition: refidadapterimp.hpp:550
float mX
Definition: aipackage.hpp:40
const RefIdColumn * mValue
Definition: refidadapterimp.hpp:249
virtual ~NestedTravelRefIdAdapter()
Definition: refidadapterimp.hpp:1444
CreatureMiscRefIdAdapter()
Definition: refidadapterimp.cpp:1309
const RefIdColumn * mOpenSound
Definition: refidadapterimp.hpp:782
const RefIdColumn * mSlash[2]
Definition: refidadapterimp.hpp:879
Definition: refidadapterimp.hpp:856
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.
Definition: refidadapterimp.cpp:37
std::map< const RefIdColumn *, unsigned int > mFlags
Definition: refidadapterimp.hpp:804
const RefIdColumn * mEffects
Definition: refidadapterimp.hpp:322
const RefIdColumn * mFight
Definition: refidadapterimp.hpp:545
Definition: refidadapterimp.hpp:1025
virtual ~NestedInventoryRefIdAdapter()
Definition: refidadapterimp.hpp:1180
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:1020
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:1182
ActorColumns(const NameColumns &base)
Definition: refidadapterimp.hpp:553
BodyPartRefIdAdapter & operator=(const BodyPartRefIdAdapter &)
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.
Definition: refidadapterimp.cpp:327
LevListColumns(const BaseColumns &base)
Definition: refidadapterimp.hpp:2054
Definition: refidadapterimp.hpp:751
const RefIdColumn * mReach
Definition: refidadapterimp.hpp:877
void setModified(const ESXRecordT &modified)
Throws an exception, if the record is deleted.
Definition: record.hpp:133
const RefIdColumn * mType
Definition: refidadapterimp.hpp:27
Definition: refidadapterimp.hpp:886
ArmorRefIdAdapter(const EnchantableColumns &columns, const RefIdColumn *type, const RefIdColumn *health, const RefIdColumn *armor, const RefIdColumn *partRef)
Definition: refidadapterimp.cpp:251
NameRefIdAdapter(UniversalId::Type type, const NameColumns &columns)
Definition: refidadapterimp.hpp:204
float mX
Definition: aipackage.hpp:46
Position mPos
Definition: transport.hpp:21
Definition: refidadapterimp.hpp:327
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.
Definition: refidadapterimp.hpp:98
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.hpp:1121
const RefIdColumn * mTime
Definition: refidadapterimp.hpp:800
Definition: aipackage.hpp:64
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:2376
Definition: refidadapterimp.hpp:963
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:175
NpcMiscRefIdAdapter()
Definition: refidadapterimp.cpp:990
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:861
virtual int getRowsCount(const Record< ESXRecordT > &record) const
Definition: nestedcoladapterimp.hpp:398
Definition: refidadapterimp.hpp:177
Definition: refidadapterimp.hpp:2058
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:984
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.hpp:2116
NestedLevListRefIdAdapter(const NestedLevListRefIdAdapter &)
short mLevel
Definition: loadlevlist.hpp:34
ApparatusRefIdAdapter(const InventoryColumns &columns, const RefIdColumn *type, const RefIdColumn *quality)
Definition: refidadapterimp.cpp:208
const RefIdColumn * mType
Definition: refidadapterimp.hpp:754
Definition: refidadapterimp.hpp:320
NAME32 mId
Definition: aipackage.hpp:48
Definition: nestedtablewrapper.hpp:16
NestedSpellRefIdAdapter(UniversalId::Type type)
Definition: refidadapterimp.hpp:1316
float rot[3]
Definition: defs.hpp:43
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.cpp:197
Base adapter for all refereceable record types Adapters that can handle nested tables, needs to return valid qvariant for parent columns.
Definition: refidadapterimp.hpp:33
PotionColumns(const InventoryColumns &columns)
Definition: refidadapterimp.cpp:12
float mY
Definition: aipackage.hpp:40
unsigned char mIdle[8]
Definition: aipackage.hpp:34
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.hpp:1182
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:1514
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.
Definition: refidadapterimp.hpp:2091
LightColumns(const InventoryColumns &columns)
Definition: refidadapterimp.cpp:581
const RefIdColumn * mSkill
Definition: refidadapterimp.hpp:698
void assign(const std::string &value)
Definition: esmcommon.hpp:60
ActorAiRefIdAdapter(const ActorAiRefIdAdapter &)
Definition: refidadapterimp.hpp:404
virtual void removeRow(Record< ESXRecordT > &record, int rowToRemove) const
Definition: nestedcoladapterimp.hpp:256
Definition: refidadapterimp.hpp:1583
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.cpp:1122
virtual NestedTableWrapperBase * table(const Record< ESXRecordT > &record) const
Definition: nestedcoladapterimp.hpp:280
unsigned char mShouldRepeat
Definition: aipackage.hpp:35
Adapter for actor IDs (handles common AI functionality)
Definition: refidadapterimp.hpp:558
CreatureRefIdAdapter(const CreatureColumns &columns)
Definition: refidadapterimp.cpp:464
IngredEffectRefIdAdapter & operator=(const IngredEffectRefIdAdapter &)
BaseColumns mBase
Definition: refidadapterimp.hpp:36
Definition: loadlevlist.hpp:31
virtual void setNestedData(const RefIdColumn *column, RefIdData &data, int row, const QVariant &value, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:1767
Definition: refidadapterimp.hpp:1091
Definition: universalid.hpp:81
EffectsRefIdAdapter & operator=(const EffectsRefIdAdapter &)
virtual int getNestedRowsCount(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:1213
const RefIdColumn * mEnchantment
Definition: refidadapterimp.hpp:406
Definition: refidadapterimp.hpp:841
const RefIdColumn * mCloseSound
Definition: refidadapterimp.hpp:783
virtual void addRow(Record< ESXRecordT > &record, int position) const
Definition: nestedcoladapterimp.hpp:234
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:1241
const RefIdColumn * mModel
Definition: refidadapterimp.hpp:117
virtual QVariant getData(const Record< ESXRecordT > &record, int subRowIndex, int subColIndex) const
Definition: nestedcoladapterimp.hpp:286
const RefIdColumn * mAttacks
Definition: refidadapterimp.hpp:758
std::string mFemale
Definition: loadarmo.hpp:50
CreatureAttackRefIdAdapter()
Definition: refidadapterimp.cpp:1219
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.hpp:581
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.cpp:996
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:821
EffectsRefIdAdapter(UniversalId::Type type)
Definition: refidadapterimp.hpp:1101
Definition: refidadapter.hpp:49
Definition: loadlevlist.hpp:55
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:1129
CreatureColumns mColumns
Definition: refidadapterimp.hpp:766
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.cpp:1333
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:1656
Definition: refidadapterimp.hpp:1168
Definition: refidadapterimp.hpp:798
ActorColumns mActors
Definition: refidadapterimp.hpp:560
LightRefIdAdapter(const LightColumns &columns)
Definition: refidadapterimp.cpp:584
Definition: refidadapterimp.hpp:367
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.hpp:1339
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:21
EnchantableColumns mEnchantable
Definition: refidadapterimp.hpp:416
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:1369
Definition: refidadapterimp.hpp:344
UniversalId::Type mType
Definition: refidadapterimp.hpp:1170
virtual void addNestedRow(const RefIdColumn *column, RefIdData &data, int index, int position) const
Definition: refidadapterimp.cpp:902
std::pair< int, UniversalId::Type > LocalIndex
Definition: refiddata.hpp:223
BodyPartRefIdAdapter(UniversalId::Type type)
Definition: refidadapterimp.hpp:1916
const RefIdColumn * mSpeed
Definition: refidadapterimp.hpp:876
UniversalId::Type mType
Definition: refidadapterimp.hpp:1908
const RefIdColumn * mClass
Definition: refidadapterimp.hpp:845
ClothingRefIdAdapter(const EnchantableColumns &columns, const RefIdColumn *type, const RefIdColumn *partRef)
Definition: refidadapterimp.cpp:351
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.
Definition: refidadapterimp.hpp:298
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:941
const RefIdColumn * mQuality
Definition: refidadapterimp.hpp:660
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.
Definition: refidadapterimp.hpp:159
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.hpp:2304
const RefIdColumn * mWeight
Definition: refidadapterimp.hpp:734
UniversalId::Type mType
Definition: refidadapterimp.hpp:2254
Definition: refidadapterimp.hpp:764
Definition: refidadapterimp.hpp:905
const RefIdColumn * mHead
Definition: refidadapterimp.hpp:848
ActorAiRefIdAdapter & operator=(const ActorAiRefIdAdapter &)
const RefIdColumn * mSkills
Definition: refidadapterimp.hpp:850
const RefIdColumn * mHello
Definition: refidadapterimp.hpp:543
Definition: loadarmo.hpp:43
virtual void setNestedTable(const RefIdColumn *column, RefIdData &data, int index, const NestedTableWrapperBase &nestedTable) const
Definition: refidadapterimp.cpp:1128
virtual ~NpcMiscRefIdAdapter()
Definition: refidadapterimp.cpp:993
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.cpp:1321
IngredientColumns mColumns
Definition: refidadapterimp.hpp:353
Adapter for enchantable IDs.
Definition: refidadapterimp.hpp:414
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.hpp:1137
virtual QVariant getNestedData(const RefIdColumn *column, const RefIdData &data, int index, int subRowIndex, int subColIndex) const
Definition: refidadapterimp.cpp:130
virtual NestedTableWrapperBase * nestedTable(const RefIdColumn *column, const RefIdData &data, int index) const
Definition: refidadapterimp.hpp:2317
virtual int getColumnsCount(const Record< ESXRecordT > &record) const
Definition: nestedcoladapterimp.hpp:393
const RefIdColumn * mLevList
Definition: refidadapterimp.hpp:2051
NestedSpellRefIdAdapter & operator=(const NestedSpellRefIdAdapter &)
const RefIdColumn * mRadius
Definition: refidadapterimp.hpp:801
virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData &data) const
Definition: refidadapterimp.hpp:1890
Definition: refidadapterimp.hpp:2101
const RefIdColumn * mScroll
Definition: refidadapterimp.hpp:697
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.cpp:588
float mZ
Definition: aipackage.hpp:40
virtual void removeNestedRow(const RefIdColumn *column, RefIdData &data, int index, int rowToRemove) const
Definition: refidadapterimp.cpp:801
std::map< const RefIdColumn *, unsigned int > mFlags
Definition: refidadapterimp.hpp:881
virtual QVariant getData(const RefIdColumn *column, const RefIdData &data, int index) const
If called on the nest column, should return QVariant(true).
Definition: refidadapterimp.hpp:2081
const RefIdColumn * mRace
Definition: refidadapterimp.hpp:844