If we start reading from a DB block with a different schema, reflect that in the dimensions and size.
| 67 | // If we start reading from a DB block with a different schema, reflect that |
| 68 | // in the dimensions and size. |
| 69 | void DbReader::updateSchema(const XMLSchema& schema) |
| 70 | { |
| 71 | m_dims = schema.xmlDims(); |
| 72 | m_orientation = schema.orientation(); |
| 73 | m_packedPointSize = 0; |
| 74 | for (auto di = m_dims.begin(); di != m_dims.end(); ++di) |
| 75 | { |
| 76 | di->m_dimType.m_id = m_layout->findDim(di->m_name); |
| 77 | m_packedPointSize += Dimension::size(di->m_dimType.m_type); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | |
| 82 | DimTypeList DbReader::dbDimTypes() const |