OpenMW
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
MWWorld::Globals Class Reference

#include <globals.hpp>

List of all members.

Classes

union  Data

Public Types

typedef std::map< std::string,
std::pair< char, Data > > 
Collection

Public Member Functions

 Globals (const MWWorld::ESMStore &store)
const Dataoperator[] (const std::string &name) const
Dataoperator[] (const std::string &name)
void setInt (const std::string &name, int value)
 Set value independently from real type.
void setFloat (const std::string &name, float value)
 Set value independently from real type.
int getInt (const std::string &name) const
 Get value independently from real type.
float getFloat (const std::string &name) const
 Get value independently from real type.
char getType (const std::string &name) const
 If there is no global variable with this name, ' ' is returned.
std::vector< std::string > getGlobals () const

Private Member Functions

Collection::const_iterator find (const std::string &name) const
Collection::iterator find (const std::string &name)

Private Attributes

Collection mVariables

Member Typedef Documentation

typedef std::map<std::string, std::pair<char, Data> > MWWorld::Globals::Collection

Constructor & Destructor Documentation


Member Function Documentation

Globals::Collection::const_iterator MWWorld::Globals::find ( const std::string &  name) const [private]
Globals::Collection::iterator MWWorld::Globals::find ( const std::string &  name) [private]
float MWWorld::Globals::getFloat ( const std::string &  name) const

Get value independently from real type.

std::vector< std::string > MWWorld::Globals::getGlobals ( ) const
int MWWorld::Globals::getInt ( const std::string &  name) const

Get value independently from real type.

char MWWorld::Globals::getType ( const std::string &  name) const

If there is no global variable with this name, ' ' is returned.

const Globals::Data & MWWorld::Globals::operator[] ( const std::string &  name) const
Globals::Data & MWWorld::Globals::operator[] ( const std::string &  name)
void MWWorld::Globals::setFloat ( const std::string &  name,
float  value 
)

Set value independently from real type.

void MWWorld::Globals::setInt ( const std::string &  name,
int  value 
)

Set value independently from real type.


Member Data Documentation


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