OpenMW
apps/opencs/model/world/refcollection.hpp
Go to the documentation of this file.
00001 #ifndef CSM_WOLRD_REFCOLLECTION_H
00002 #define CSM_WOLRD_REFCOLLECTION_H
00003 
00004 #include "collection.hpp"
00005 #include "ref.hpp"
00006 #include "record.hpp"
00007 
00008 namespace CSMWorld
00009 {
00010     struct Cell;
00011 
00013     class RefCollection : public Collection<CellRef>
00014     {
00015             Collection<Cell>& mCells;
00016             int mNextId;
00017 
00018         public:
00019             // MSVC needs the constructor for a class inheriting a template to be defined in header
00020             RefCollection (Collection<Cell>& cells)
00021               : mCells (cells), mNextId (0)
00022             {}
00023 
00024             void load (ESM::ESMReader& reader, int cellIndex, bool base);
00026 
00027             std::string getNewId();
00028     };
00029 }
00030 
00031 #endif