OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loadglob.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_GLOB_H
2 #define OPENMW_ESM_GLOB_H
3 
4 #include <string>
5 
6 #include "variant.hpp"
7 
8 namespace ESM
9 {
10 
11 class ESMReader;
12 class ESMWriter;
13 
14 /*
15  * Global script variables
16  */
17 
18 struct Global
19 {
20  static unsigned int sRecordId;
22  static std::string getRecordType() { return "Global"; }
23 
24  std::string mId;
26 
27  void load(ESMReader &esm, bool &isDeleted);
28  void save(ESMWriter &esm, bool isDeleted = false) const;
29 
30  void blank();
32 };
33 
34 bool operator== (const Global& left, const Global& right);
35 
36 }
37 #endif
bool operator==(const CellId &left, const CellId &right)
Definition: cellid.cpp:29
Definition: esmreader.hpp:21
void load(ESMReader &esm, bool &isDeleted)
Definition: loadglob.cpp:11
void blank()
Set record to default state (does not touch the ID).
Definition: loadglob.cpp:42
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: loadglob.cpp:28
Definition: loadglob.hpp:18
Variant mValue
Definition: loadglob.hpp:25
Definition: esmwriter.hpp:17
static std::string getRecordType()
Return a string descriptor for this record type. Currently used for debugging / error logs only...
Definition: loadglob.hpp:22
std::string mId
Definition: loadglob.hpp:24
Definition: variant.hpp:25
static unsigned int sRecordId
Definition: loadglob.hpp:20