OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
filter.hpp
Go to the documentation of this file.
1 #ifndef COMPONENTS_ESM_FILTER_H
2 #define COMPONENTS_ESM_FILTER_H
3 
4 #include <string>
5 
6 namespace ESM
7 {
8  class ESMReader;
9  class ESMWriter;
10 
11  struct Filter
12  {
13  static unsigned int sRecordId;
14 
15  std::string mId;
16 
17  std::string mDescription;
18 
19  std::string mFilter;
20 
21  void load (ESMReader& esm, bool &isDeleted);
22  void save (ESMWriter& esm, bool isDeleted = false) const;
23 
24  void blank();
26  };
27 }
28 
29 #endif
Definition: esmreader.hpp:21
std::string mDescription
Definition: filter.hpp:17
std::string mId
Definition: filter.hpp:15
void save(ESMWriter &esm, bool isDeleted=false) const
Definition: filter.cpp:39
void blank()
Set record to default state (does not touch the ID).
Definition: filter.cpp:53
Definition: esmwriter.hpp:17
Definition: filter.hpp:11
std::string mFilter
Definition: filter.hpp:19
void load(ESMReader &esm, bool &isDeleted)
Definition: filter.cpp:9
static unsigned int sRecordId
Definition: filter.hpp:13