OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
mergestate.hpp
Go to the documentation of this file.
1 #ifndef CSM_TOOLS_MERGESTATE_H
2 #define CSM_TOOLS_MERGESTATE_H
3 
4 #include <stdint.h>
5 
6 #include <memory>
7 #include <map>
8 
9 #include "../doc/document.hpp"
10 
11 namespace CSMTools
12 {
13  struct MergeState
14  {
15  std::auto_ptr<CSMDoc::Document> mTarget;
17  bool mCompleted;
18  std::map<std::pair<uint16_t, int>, int> mTextureIndices; // (texture, content file) -> new texture
19 
20  MergeState (CSMDoc::Document& source) : mSource (source), mCompleted (false) {}
21  };
22 }
23 
24 #endif
std::auto_ptr< CSMDoc::Document > mTarget
Definition: mergestate.hpp:15
MergeState(CSMDoc::Document &source)
Definition: mergestate.hpp:20
Definition: document.hpp:57
CSMDoc::Document & mSource
Definition: mergestate.hpp:16
std::map< std::pair< uint16_t, int >, int > mTextureIndices
Definition: mergestate.hpp:18
bool mCompleted
Definition: mergestate.hpp:17
Definition: mergestate.hpp:13