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

#include <esmstore.hpp>

Collaboration diagram for MWWorld::ESMStore:

Public Types

typedef std::map< int,
StoreBase * >::const_iterator 
iterator
 

Public Member Functions

iterator begin () const
 
iterator end () const
 
int find (const std::string &id) const
 
 ESMStore ()
 
void clearDynamic ()
 
void movePlayerRecord ()
 
void load (ESM::ESMReader &esm, Loading::Listener *listener)
 
template<class T >
const Store< T > & get () const
 
template<class T >
const Tinsert (const T &x)
 Insert a custom record (i.e. with a generated ID that will not clash will pre-existing records) More...
 
template<class T >
const ToverrideRecord (const T &x)
 Insert a record with set ID, and allow it to override a pre-existing static record. More...
 
template<class T >
const TinsertStatic (const T &x)
 
void setUp (bool validateRecords=false)
 
int countSavedGameRecords () const
 
void write (ESM::ESMWriter &writer, Loading::Listener &progress) const
 
bool readRecord (ESM::ESMReader &reader, uint32_t type)
 

Private Member Functions

void validate ()
 Validate entries in store after setup. More...
 

Private Attributes

Store< ESM::ActivatormActivators
 
Store< ESM::PotionmPotions
 
Store< ESM::ApparatusmAppas
 
Store< ESM::ArmormArmors
 
Store< ESM::BodyPartmBodyParts
 
Store< ESM::BookmBooks
 
Store< ESM::BirthSignmBirthSigns
 
Store< ESM::ClassmClasses
 
Store< ESM::ClothingmClothes
 
Store< ESM::ContainermContainers
 
Store< ESM::CreaturemCreatures
 
Store< ESM::DialoguemDialogs
 
Store< ESM::DoormDoors
 
Store< ESM::EnchantmentmEnchants
 
Store< ESM::FactionmFactions
 
Store< ESM::GlobalmGlobals
 
Store< ESM::IngredientmIngreds
 
Store< ESM::CreatureLevListmCreatureLists
 
Store< ESM::ItemLevListmItemLists
 
Store< ESM::LightmLights
 
Store< ESM::LockpickmLockpicks
 
Store< ESM::MiscellaneousmMiscItems
 
Store< ESM::NPCmNpcs
 
Store< ESM::ProbemProbes
 
Store< ESM::RacemRaces
 
Store< ESM::RegionmRegions
 
Store< ESM::RepairmRepairs
 
Store< ESM::SoundGeneratormSoundGens
 
Store< ESM::SoundmSounds
 
Store< ESM::SpellmSpells
 
Store< ESM::StartScriptmStartScripts
 
Store< ESM::StaticmStatics
 
Store< ESM::WeaponmWeapons
 
Store< ESM::GameSettingmGameSettings
 
Store< ESM::ScriptmScripts
 
Store< ESM::CellmCells
 
Store< ESM::LandmLands
 
Store< ESM::LandTexturemLandTextures
 
Store< ESM::PathgridmPathgrids
 
Store< ESM::MagicEffectmMagicEffects
 
Store< ESM::SkillmSkills
 
Store< ESM::AttributemAttributes
 
std::map< std::string, intmIds
 
std::map< int, StoreBase * > mStores
 
ESM::NPC mPlayerTemplate
 
unsigned int mDynamicCount
 

Member Typedef Documentation

typedef std::map<int, StoreBase *>::const_iterator MWWorld::ESMStore::iterator
Todo:
replace with SharedIterator<StoreBase>

Constructor & Destructor Documentation

MWWorld::ESMStore::ESMStore ( )
inline

Here is the call graph for this function:

Member Function Documentation

iterator MWWorld::ESMStore::begin ( ) const
inline

Here is the caller graph for this function:

void MWWorld::ESMStore::clearDynamic ( )
inline

Here is the call graph for this function:

Here is the caller graph for this function:

int MWWorld::ESMStore::countSavedGameRecords ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

iterator MWWorld::ESMStore::end ( ) const
inline

Here is the caller graph for this function:

int MWWorld::ESMStore::find ( const std::string &  id) const
inline

Look up the given ID in 'all'. Returns 0 if not found.

Note
id must be in lower case.

Here is the caller graph for this function:

template<class T >
const Store<T>& MWWorld::ESMStore::get ( ) const
inline
template<class T >
const T* MWWorld::ESMStore::insert ( const T x)
inline

Insert a custom record (i.e. with a generated ID that will not clash will pre-existing records)

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
const T* MWWorld::ESMStore::insertStatic ( const T x)
inline

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::ESMStore::load ( ESM::ESMReader esm,
Loading::Listener listener 
)
Todo:
Move this to somewhere else. ESMReader?

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::ESMStore::movePlayerRecord ( )
inline

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
const T* MWWorld::ESMStore::overrideRecord ( const T x)
inline

Insert a record with set ID, and allow it to override a pre-existing static record.

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWWorld::ESMStore::readRecord ( ESM::ESMReader reader,
uint32_t  type 
)
Returns
Known type?

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::ESMStore::setUp ( bool  validateRecords = false)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::ESMStore::validate ( )
private

Validate entries in store after setup.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWWorld::ESMStore::write ( ESM::ESMWriter writer,
Loading::Listener progress 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Store<ESM::Activator> MWWorld::ESMStore::mActivators
private
Store<ESM::Apparatus> MWWorld::ESMStore::mAppas
private
Store<ESM::Armor> MWWorld::ESMStore::mArmors
private
Store<ESM::Attribute> MWWorld::ESMStore::mAttributes
private
Store<ESM::BirthSign> MWWorld::ESMStore::mBirthSigns
private
Store<ESM::BodyPart> MWWorld::ESMStore::mBodyParts
private
Store<ESM::Book> MWWorld::ESMStore::mBooks
private
Store<ESM::Cell> MWWorld::ESMStore::mCells
private
Store<ESM::Class> MWWorld::ESMStore::mClasses
private
Store<ESM::Clothing> MWWorld::ESMStore::mClothes
private
Store<ESM::Container> MWWorld::ESMStore::mContainers
private
Store<ESM::CreatureLevList> MWWorld::ESMStore::mCreatureLists
private
Store<ESM::Creature> MWWorld::ESMStore::mCreatures
private
Store<ESM::Dialogue> MWWorld::ESMStore::mDialogs
private
Store<ESM::Door> MWWorld::ESMStore::mDoors
private
unsigned int MWWorld::ESMStore::mDynamicCount
private
Store<ESM::Enchantment> MWWorld::ESMStore::mEnchants
private
Store<ESM::Faction> MWWorld::ESMStore::mFactions
private
Store<ESM::GameSetting> MWWorld::ESMStore::mGameSettings
private
Store<ESM::Global> MWWorld::ESMStore::mGlobals
private
std::map<std::string, int> MWWorld::ESMStore::mIds
private
Store<ESM::Ingredient> MWWorld::ESMStore::mIngreds
private
Store<ESM::ItemLevList> MWWorld::ESMStore::mItemLists
private
Store<ESM::Land> MWWorld::ESMStore::mLands
private
Store<ESM::LandTexture> MWWorld::ESMStore::mLandTextures
private
Store<ESM::Light> MWWorld::ESMStore::mLights
private
Store<ESM::Lockpick> MWWorld::ESMStore::mLockpicks
private
Store<ESM::MagicEffect> MWWorld::ESMStore::mMagicEffects
private
Store<ESM::Miscellaneous> MWWorld::ESMStore::mMiscItems
private
Store<ESM::NPC> MWWorld::ESMStore::mNpcs
private
Store<ESM::Pathgrid> MWWorld::ESMStore::mPathgrids
private
ESM::NPC MWWorld::ESMStore::mPlayerTemplate
private
Store<ESM::Potion> MWWorld::ESMStore::mPotions
private
Store<ESM::Probe> MWWorld::ESMStore::mProbes
private
Store<ESM::Race> MWWorld::ESMStore::mRaces
private
Store<ESM::Region> MWWorld::ESMStore::mRegions
private
Store<ESM::Repair> MWWorld::ESMStore::mRepairs
private
Store<ESM::Script> MWWorld::ESMStore::mScripts
private
Store<ESM::Skill> MWWorld::ESMStore::mSkills
private
Store<ESM::SoundGenerator> MWWorld::ESMStore::mSoundGens
private
Store<ESM::Sound> MWWorld::ESMStore::mSounds
private
Store<ESM::Spell> MWWorld::ESMStore::mSpells
private
Store<ESM::StartScript> MWWorld::ESMStore::mStartScripts
private
Store<ESM::Static> MWWorld::ESMStore::mStatics
private
std::map<int, StoreBase *> MWWorld::ESMStore::mStores
private
Store<ESM::Weapon> MWWorld::ESMStore::mWeapons
private

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