| 137 | } |
| 138 | |
| 139 | void DecodeSourceIndexDat(const CFileDataIO& file) |
| 140 | { |
| 141 | uint32_t numKeys; |
| 142 | uint32_t numSource; |
| 143 | uint32_t numName; |
| 144 | uint8_t tagCount; |
| 145 | |
| 146 | cout << "Version : " << file.ReadUInt32(); |
| 147 | cout << "\nSaveTime: " << CTimeT(file.ReadUInt32()); |
| 148 | cout << "\nnumKeys : " << (numKeys = file.ReadUInt32()) << '\n'; |
| 149 | for (uint32_t ik = 0; ik < numKeys; ik++) { |
| 150 | cout << "\tKeyID : " << file.ReadUInt128(); |
| 151 | cout << "\n\tnumSource: " << (numSource = file.ReadUInt32()) << '\n'; |
| 152 | for (uint32_t is = 0; is < numSource; is++) { |
| 153 | cout << "\t\tSourceID: " << file.ReadUInt128(); |
| 154 | cout << "\n\t\tnumName : " << (numName = file.ReadUInt32()) << '\n'; |
| 155 | for (uint32_t iN = 0; iN < numName; iN++) { |
| 156 | cout << "\t\t\tLifeTime: " << CTimeT(file.ReadUInt32()); |
| 157 | cout << "\n\t\t\ttagCount: " << static_cast<unsigned int>(tagCount = file.ReadUInt8()) << '\n'; |
| 158 | for (uint32_t it = 0; it < tagCount; it++) { |
| 159 | CTag *tag = file.ReadTag(); |
| 160 | cout << "\t\t\t\t" << *tag << '\n'; |
| 161 | delete tag; |
| 162 | } |
| 163 | } |
| 164 | } |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | void DecodeNodesDat(const CFileDataIO& file) |
| 169 | { |
no test coverage detected