OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
refcollection.hpp
Go to the documentation of this file.
1 #ifndef CSM_WOLRD_REFCOLLECTION_H
2 #define CSM_WOLRD_REFCOLLECTION_H
3 
4 #include <map>
5 
6 #include "../doc/stage.hpp"
7 
8 #include "collection.hpp"
9 #include "ref.hpp"
10 #include "record.hpp"
11 
12 namespace CSMWorld
13 {
14  struct Cell;
15  class UniversalId;
16 
18  class RefCollection : public Collection<CellRef>
19  {
21  int mNextId;
22 
23  public:
24  // MSVC needs the constructor for a class inheriting a template to be defined in header
26  : mCells (cells), mNextId (0)
27  {}
28 
29  void load (ESM::ESMReader& reader, int cellIndex, bool base,
30  std::map<ESM::RefNum, std::string>& cache, CSMDoc::Messages& messages);
32 
33  std::string getNewId();
34  };
35 }
36 
37 #endif
int mNextId
Definition: refcollection.hpp:21
RefCollection(Collection< Cell > &cells)
Definition: refcollection.hpp:25
Definition: esmreader.hpp:21
void load(ESM::ESMReader &reader, int cellIndex, bool base, std::map< ESM::RefNum, std::string > &cache, CSMDoc::Messages &messages)
Load a sequence of references.
Definition: refcollection.cpp:14
Single-type record collection.
Definition: collection.hpp:44
Definition: messages.hpp:38
Collection< Cell > & mCells
Definition: refcollection.hpp:20
std::string getNewId()
Definition: refcollection.cpp:141
References in cells.
Definition: refcollection.hpp:18