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 T * insert (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 T * overrideRecord (const T &x)
 Insert a record with set ID, and allow it to override a pre-existing static record. More...
 
template<class T >
const T * insertStatic (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::Activator > mActivators
 
Store< ESM::Potion > mPotions
 
Store< ESM::Apparatus > mAppas
 
Store< ESM::Armor > mArmors
 
Store< ESM::BodyPart > mBodyParts
 
Store< ESM::Book > mBooks
 
Store< ESM::BirthSign > mBirthSigns
 
Store< ESM::Class > mClasses
 
Store< ESM::Clothing > mClothes
 
Store< ESM::Container > mContainers
 
Store< ESM::Creature > mCreatures
 
Store< ESM::Dialogue > mDialogs
 
Store< ESM::Door > mDoors
 
Store< ESM::Enchantment > mEnchants
 
Store< ESM::Faction > mFactions
 
Store< ESM::Global > mGlobals
 
Store< ESM::Ingredient > mIngreds
 
Store< ESM::CreatureLevList > mCreatureLists
 
Store< ESM::ItemLevList > mItemLists
 
Store< ESM::Light > mLights
 
Store< ESM::Lockpick > mLockpicks
 
Store< ESM::Miscellaneous > mMiscItems
 
Store< ESM::NPC > mNpcs
 
Store< ESM::Probe > mProbes
 
Store< ESM::Race > mRaces
 
Store< ESM::Region > mRegions
 
Store< ESM::Repair > mRepairs
 
Store< ESM::SoundGenerator > mSoundGens
 
Store< ESM::Sound > mSounds
 
Store< ESM::Spell > mSpells
 
Store< ESM::StartScript > mStartScripts
 
Store< ESM::Static > mStatics
 
Store< ESM::Weapon > mWeapons
 
Store< ESM::GameSetting > mGameSettings
 
Store< ESM::Script > mScripts
 
Store< ESM::Cell > mCells
 
Store< ESM::Land > mLands
 
Store< ESM::LandTexture > mLandTextures
 
Store< ESM::Pathgrid > mPathgrids
 
Store< ESM::MagicEffect > mMagicEffects
 
Store< ESM::Skill > mSkills
 
Store< ESM::Attribute > mAttributes
 
std::map< std::string, int > mIds
 
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: