OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
debugprofile.hpp
Go to the documentation of this file.
1 #ifndef COMPONENTS_ESM_DEBUGPROFILE_H
2 #define COMPONENTS_ESM_DEBUGPROFILE_H
3 
4 #include <string>
5 
6 namespace ESM
7 {
8  class ESMReader;
9  class ESMWriter;
10 
11  struct DebugProfile
12  {
13  static unsigned int sRecordId;
14 
15  enum Flags
16  {
17  Flag_Default = 1, // add to newly opened scene subviews
18  Flag_BypassNewGame = 2, // bypass regular game startup
19  Flag_Global = 4 // make available from main menu (i.e. not location specific)
20  };
21 
22  std::string mId;
23 
24  std::string mDescription;
25 
26  std::string mScriptText;
27 
28  unsigned int mFlags;
29 
30  void load (ESMReader& esm, bool &isDeleted);
31  void save (ESMWriter& esm, bool isDeleted = false) const;
32 
34  void blank();
35  };
36 }
37 
38 #endif
Flags
Definition: debugprofile.hpp:15
Definition: esmreader.hpp:21
unsigned int mFlags
Definition: debugprofile.hpp:28
static unsigned int sRecordId
Definition: debugprofile.hpp:13
std::string mScriptText
Definition: debugprofile.hpp:26
Definition: esmwriter.hpp:17
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: debugprofile.cpp:41
Definition: debugprofile.hpp:17
std::string mDescription
Definition: debugprofile.hpp:24
Definition: debugprofile.hpp:19
Definition: debugprofile.hpp:11
void blank()
Set record to default state (does not touch the ID).
Definition: debugprofile.cpp:56
Definition: debugprofile.hpp:18
void load(ESMReader &esm, bool &isDeleted)
Definition: debugprofile.cpp:9
std::string mId
Definition: debugprofile.hpp:22