OpenMW
components/esm/loadgmst.hpp
Go to the documentation of this file.
00001 #ifndef OPENMW_ESM_GMST_H
00002 #define OPENMW_ESM_GMST_H
00003 
00004 #include <string>
00005 
00006 #include "variant.hpp"
00007 
00008 namespace ESM
00009 {
00010 
00011 class ESMReader;
00012 class ESMWriter;
00013 
00014 /*
00015  *  Game setting, with automatic cleaning of "dirty" entries.
00016  *
00017  */
00018 
00019 struct GameSetting
00020 {
00021     static unsigned int sRecordId;
00022 
00023     std::string mId;
00024 
00025     Variant mValue;
00026 
00027     void load(ESMReader &esm);
00028 
00030 
00031     int getInt() const;
00033 
00034     float getFloat() const;
00036 
00037     std::string getString() const;
00039 
00040     void save(ESMWriter &esm) const;
00041 
00042     void blank();
00044 };
00045 
00046     bool operator== (const GameSetting& left, const GameSetting& right);
00047 }
00048 #endif