1 #ifndef CSM_TOOLS_MERGESTAGES_H
2 #define CSM_TOOLS_MERGESTAGES_H
9 #include "../doc/stage.hpp"
11 #include "../world/data.hpp"
48 template<
typename RecordType,
typename Collection = CSMWorld::IdCollection<RecordType> >
65 template<
typename RecordType,
typename Collection>
67 : mState (state), mAccessor (accessor)
70 template<
typename RecordType,
typename Collection>
73 return (mState.mSource.getData().*mAccessor)().getSize();
76 template<
typename RecordType,
typename Collection>
79 const Collection& source = (mState.mSource.getData().*mAccessor)();
80 Collection& target = (mState.mTarget->getData().*mAccessor)();
137 std::map<std::pair<uint16_t, int>,
int>::iterator
mNext;
virtual int setup()
Definition: mergestages.cpp:155
MergeState & mState
Definition: mergestages.hpp:136
virtual void perform(int stage, CSMDoc::Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: mergestages.cpp:163
ListLandTexturesMergeStage(MergeState &state)
Definition: mergestages.cpp:112
Definition: messages.hpp:38
MergeLandTexturesStage(MergeState &state)
Definition: mergestages.cpp:151
Definition: nestedcolumnadapter.hpp:11
Definition: record.hpp:14
MergeState & mState
Definition: mergestages.hpp:121
FromType
Definition: to_utf8.hpp:11
virtual int setup()
Definition: mergestages.cpp:116
const ESXRecordT & get() const
Throws an exception, if the record is deleted.
Definition: record.hpp:106
virtual void perform(int stage, CSMDoc::Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: mergestages.cpp:121
std::map< std::pair< uint16_t, int >, int >::iterator mNext
Definition: mergestages.hpp:137
Definition: to_utf8.hpp:25
Definition: mergestages.hpp:119
bool isDeleted() const
Definition: record.cpp:5
Definition: mergestages.hpp:134