| 95 | } |
| 96 | |
| 97 | void TreeImportExport::addModuleListToRootElement(TiXmlElement * rootElement, const std::map<DWORD_PTR, ImportModuleThunk> & moduleList) |
| 98 | { |
| 99 | std::map<DWORD_PTR, ImportModuleThunk>::const_iterator it_mod; |
| 100 | for(it_mod = moduleList.begin(); it_mod != moduleList.end(); it_mod++) |
| 101 | { |
| 102 | const ImportModuleThunk& importModuleThunk = it_mod->second; |
| 103 | |
| 104 | TiXmlElement* moduleElement = getModuleXmlElement(&importModuleThunk); |
| 105 | |
| 106 | std::map<DWORD_PTR, ImportThunk>::const_iterator it_thunk; |
| 107 | for(it_thunk = importModuleThunk.thunkList.begin(); it_thunk != importModuleThunk.thunkList.end(); it_thunk++) |
| 108 | { |
| 109 | const ImportThunk& importThunk = it_thunk->second; |
| 110 | |
| 111 | TiXmlElement* importElement = getImportXmlElement(&importThunk); |
| 112 | |
| 113 | moduleElement->LinkEndChild(importElement); |
| 114 | } |
| 115 | |
| 116 | rootElement->LinkEndChild(moduleElement); |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | TiXmlElement * TreeImportExport::getModuleXmlElement(const ImportModuleThunk * importModuleThunk) |
| 121 | { |
nothing calls this directly
no outgoing calls
no test coverage detected